<html>
  <head>
	  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>i5ting_ztree_toc:api2</title>
		<link href="toc/style/github-bf51422f4bb36427d391e4b75a1daa083c2d840e.css" media="all" rel="stylesheet" type="text/css"/>
		<link href="toc/style/github2-d731afd4f624c99a4b19ad69f3083cd6d02b81d5.css" media="all" rel="stylesheet" type="text/css"/>
		<link href="toc/css/zTreeStyle/zTreeStyle.css" media="all" rel="stylesheet" type="text/css"/>
	  <style>
		pre {
		    counter-reset: line-numbering;
		    border: solid 1px #d9d9d9;
		    border-radius: 0;
		    background: #fff;
		    padding: 0;
		    line-height: 23px;
		    margin-bottom: 30px;
		    white-space: pre;
		    overflow-x: auto;
		    word-break: inherit;
		    word-wrap: inherit;
		}

		pre a::before {
		  content: counter(line-numbering);
		  counter-increment: line-numbering;
		  padding-right: 1em; /* space after numbers */
		  width: 25px;
		  text-align: right;
		  opacity: 0.7;
		  display: inline-block;
		  color: #aaa;
		  background: #eee;
		  margin-right: 16px;
		  padding: 2px 10px;
		  font-size: 13px;
		  -webkit-touch-callout: none;
		  -webkit-user-select: none;
		  -khtml-user-select: none;
		  -moz-user-select: none;
		  -ms-user-select: none;
		  user-select: none;
		}

		pre a:first-of-type::before {
		  padding-top: 10px;
		}

		pre a:last-of-type::before {
		  padding-bottom: 10px;
		}

		pre a:only-of-type::before {
		  padding: 10px;
		}

		.highlight { background-color: #ffffcc } /* RIGHT */
		</style>
  </head>
  <body>
	  <div>
				<div style='width:25%;'>
						<ul id="tree" class="ztree" style='width:100%'>

						</ul>
				</div>
        <div id='readme' style='width:70%;margin-left:20%;'>
          	<article class='markdown-body'>
            	<h1 id="-">账号注销</h1>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>账号注销</td>
<td>http</td>
<td>post</td>
<td>log_off</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h1 id="-">快递列表</h1>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加销售单</td>
<td>http</td>
<td>post</td>
<td>new_kuaidi_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>keyword</td>
<td>否</td>
<td>否</td>
<td>关键词</td>
<td>string</td>
<td>中通（或者zhongtong）</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 4,    // 快递主键id标识
            &quot;company_name&quot;: &quot;中通快递&quot;, //快递名称
            &quot;company_code&quot;: &quot;zhongtong&quot;,    //快递code
            &quot;company_type_name&quot;: &quot;国内运输商&quot;, //快递类型
        }
    ]
}
</code></pre><h1 id="-">财务</h1>
<h2 id="-">销售及销售单</h2>
<h3 id="-">添加</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加销售单</td>
<td>http</td>
<td>post</td>
<td>sell_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>customer_name</td>
<td>是</td>
<td>否</td>
<td>客户姓名</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>goods_info</td>
<td>否</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td>[{&quot;materiel_type_id&quot;:548,&quot;name&quot;:&quot;\u827e\u7eaf\u6df1\u6d77\u76d0\u808c\u8865\u6c34\u6ce1\u6ce1\u819c&quot;,&quot;type_name&quot;:&quot;\u6ce1\u6ce1&quot;,&quot;price&quot;:&quot;2.30&quot;,&quot;num&quot;:2,&quot;image&quot;:&quot;&quot;,&quot;warehouse&quot;:&quot;B2-6\u680b&quot;,&quot;warehouse_id&quot;:4,&quot;batch_info&quot;:[{&quot;batch_id&quot;:20,&quot;storage_manage_id&quot;:10048,&quot;num&quot;:2}]}]</td>
</tr>
<tr>
<td>package_info</td>
<td>否</td>
<td>否</td>
<td>套餐信息</td>
<td>array</td>
<td>[{&quot;price&quot;:&quot;60&quot;,&quot;num&quot;:2,&quot;package_id&quot;:52,&quot;package_content&quot;:[{&quot;id&quot;:128,&quot;type_id&quot;:31,&quot;num&quot;:10,&quot;materiel_class_id&quot;:69,&quot;storage_id&quot;:33,&quot;storage_manage_id&quot;:1843}]}]</td>
</tr>
<tr>
<td>discount</td>
<td>否</td>
<td>否</td>
<td>折扣 ：百分比</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>tax_rate</td>
<td>否</td>
<td>否</td>
<td>税率 ：百分比</td>
<td>integer</td>
<td>13</td>
</tr>
<tr>
<td>is_zero_suppression</td>
<td>是</td>
<td>否</td>
<td>是否抹零：0-否 1-是</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>final_money</td>
<td>否</td>
<td>否</td>
<td>实际应收金额（即折扣或抹零后价格）如果是抹零此参数必传</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>deliver_goods_type</td>
<td>否</td>
<td>否</td>
<td>发货方式：1-自提 2-代发 3-送货</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>transport_type</td>
<td>否</td>
<td>否</td>
<td>运输方式：1-空运 2-海运 3-铁路 4-公路</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>consignee</td>
<td>否</td>
<td>否</td>
<td>收货人</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>否</td>
<td>否</td>
<td>联系方式</td>
<td>string</td>
<td>18977687686</td>
</tr>
<tr>
<td>address</td>
<td>否</td>
<td>否</td>
<td>收货地址</td>
<td>string</td>
<td>大学城</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>out_order_no</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>string</td>
<td>jojdojfo903u40jgi</td>
</tr>
<tr>
<td>sell_date</td>
<td>是</td>
<td>否</td>
<td>销售时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>is_draft</td>
<td>是</td>
<td>否</td>
<td>是否草稿：1-是 0-否</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
<tr>
<td>real_money</td>
<td>否</td>
<td>否</td>
<td>实收金额（实际入账）</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>source</td>
<td>否</td>
<td>否</td>
<td>订单来源</td>
<td>integer</td>
<td>订单来源:0-未知 1-安卓 2-ios 3-pc 4-微信小程序 5-抖音小程序</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>否</td>
<td>编号</td>
<td>string</td>
<td>452342345</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>image</td>
<td>否</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>package_id</td>
<td>是</td>
<td>否</td>
<td>套餐id;默认为0，非0时表示该销售单添加的是套餐内容</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>package_content</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>array</td>
<td>套餐内容</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_content</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐内容id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type_id</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>是</td>
<td>否</td>
<td>商品二级分类id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>出库仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>商品库存id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: 32      销售单主键id
}
</code></pre><h3 id="-">列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售列表</td>
<td>http</td>
<td>post</td>
<td>api/sell_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>repeal_status</td>
<td>是</td>
<td>否</td>
<td>撤销状态：0-未撤销 1-已撤销</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>否</td>
<td>撤销状态：0-未撤销 1-已撤销</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>search_type</td>
<td>是</td>
<td>否</td>
<td>搜索类型;1-&gt;商品名称;2-&gt;商品编号;3-&gt;搜索内部单号;4-&gt;搜索外部单号;5-&gt;搜索快递单号;6-&gt;搜索客户姓名;7-&gt;搜索司机姓名;8-&gt;搜索发货人姓名;</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>销售单状态：默认为0;0-&gt;全部;1-&gt;新订单;2-&gt;已收款(未出库);3-&gt;已完结(已收款已出库);4-&gt;已出库(未收款),5-&gt;预出库(未付款),6-&gt;预出库(已付款);</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>下单起始时间</td>
<td>date</td>
<td>2021-11-02 20:20:20</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>下单截止时间</td>
<td>date</td>
<td>2021-11-02 20:20:20</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注
检索时，当关键词<code>keyword</code>为空，以<code>status</code>即销售单状态的检索结果为准；
当检索撤销状态为已撤销时，销售单状态<code>status</code>默认为0；
以上情况中<code>search_type</code>不影响搜索的结果，<code>search_type</code>仅在关键词<code>keyword</code>不为空时起作用；
另，当检索已撤销的销售单时，关键词<code>keyword</code>为空；</p>
</blockquote>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1, //当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 4,    //销售单主键id
                &quot;main_id&quot;: 7,    //
                &quot;user_id&quot;: 7,    //
                &quot;customer_name&quot;: &quot;张三&quot;,    //客户姓名
                &quot;consignee&quot;: &quot;&quot;,    //收货人
                &quot;phone&quot;: &quot;&quot;,    //联系电话
                &quot;address&quot;: &quot;&quot;,    //收货地址
                &quot;proof_image&quot;: null,    //凭证图片(多图逗号分隔)
                &quot;discount&quot;: null,    //折扣 ：百分比
                                &quot;discount&quot;: 80,         //折扣
                &quot;tax_rate&quot;: null,    // 税率 ：百分比
                                &quot;tax_rate&quot;: 10,    //税率
                &quot;final_money&quot;: &quot;4.60&quot;,    //实际应收金额（即折扣或抹零后价格不含运费）
                &quot;money&quot;: &quot;4.60&quot;,    //货款金额（纯商品金额）
                &quot;real_money&quot;: &quot;0.00&quot;,    //实收金额（实际入账）
                &quot;is_zero_suppression&quot;: 0,    //是否抹零：0-否 1-是
                &quot;other_charges&quot;: &quot;0.00&quot;,    //其他费用
                &quot;remark&quot;: null,    //备注
                &quot;out_order_no&quot;: &quot;&quot;,    //外部单号
                &quot;order_no&quot;: &quot;S71648103178833&quot;,    //订单号-内部单号
                &quot;sell_date&quot;: &quot;2021-11-02 13:22:23&quot;,    //销售时间
                &quot;logistics_company&quot;: &quot;&quot;,    //物流公司
                &quot;logistics_order_no&quot;: &quot;&quot;,    //物流单号
                &quot;out_status&quot;: 0,    //出库状态：0-待出库 1-部分出库 2-全部出库
                &quot;pay_status&quot;: 0,    //付款状态：0-待付款 1-部分付款 2-全部付款
                &quot;order_time&quot;: null,    //下单时间
                &quot;deliver_time&quot;: null,    //发货时间
                &quot;deliver_person&quot;: &quot;&quot;,    //发货人
                &quot;deliver_phone&quot;: &quot;&quot;,    //发货人联系方式
                &quot;deliver_addr&quot;: &quot;&quot;,    //发货地址
                &quot;repeal_status&quot;: 0,    //撤销状态：0-未撤销 1-已撤销
                &quot;deliver_goods_type&quot;: 0,    //发货方式：1-自提 2-代发 3-送货
                &quot;transport_type&quot;: 0,    //运输方式：1-空运 2-海运 3-铁路 4-公路
                &quot;is_draft&quot;: 0,    //是否草稿：1-是 0-否
                &quot;created_at&quot;: &quot;2022-03-24 14:26:18&quot;,
                &quot;updated_at&quot;: &quot;2022-03-24 14:26:18&quot;,
                &quot;username&quot;: &quot;15505523456&quot;,    //操作人账号
                &quot;nickname&quot;: &quot;用户昵称1&quot;,    //操作人昵称
                                //销售单商品信息部分
                &quot;materiel_info&quot;: [
                    {
                        &quot;sell_goods_id&quot;: 13,//销售单内商品id
                        &quot;name&quot;: &quot;艾纯深海盐肌补水泡泡膜&quot;,    //商品名
                        &quot;type_name&quot;: &quot;泡泡&quot;,    //归革命
                        &quot;price&quot;: &quot;2.30&quot;,    //售价
                        &quot;cost_price&quot;: &quot;0.00&quot;,    //商品成本
                        &quot;num&quot;: 2,    //商品数量
                        &quot;materiel_no&quot;: &quot;&quot;,    //商品编号
                        &quot;image&quot;: &quot;&quot;,    //商品图片
                        &quot;warehouse&quot;: &quot;B2-6栋&quot;,    //仓库名称
                        &quot;warehouse_id&quot;: 4,    //
                        &quot;piece&quot;: 0,    //件数
                        &quot;sell_id&quot;: 4.    //销售单主键id
                        &quot;storage_manage_id&quot;: 532,   库存id
                        &quot;in_storage_num&quot;: null //库存数
                    }
                ],
                                //销售单套餐信息部分
                &quot;package_info&quot;: [
                    {
                        &quot;sell_package_id&quot;: 4,    //销售单套餐id
                        &quot;package_id&quot;: 52,    //套餐id
                        &quot;package_name&quot;: &quot;老蓝，5L保温箱+温度显示+1蓝冰+6冰袋&quot;,    //套餐名
                        &quot;price&quot;: &quot;2.30&quot;,    //售价
                        &quot;total_cost&quot;: &quot;0.00&quot;,    //套餐总成本
                        &quot;sell_id&quot;: 4,    //销售单id
                        &quot;num&quot;: 2,    //套餐数量
                        &quot;out_num&quot;: 0,    //已出库套餐数量
                                                //销售单套餐内容部分
                        &quot;package_content&quot;: [
                            {
                                &quot;id&quot;: 50,   //销售单内套餐商品id
                                &quot;num&quot;: 1,   //数量
                                &quot;materiel_type_id&quot;: 13315,  //商品id
                                &quot;package_detail_id&quot;: 43,    //
                                &quot;materiel_name&quot;: &quot;电影&quot;,  //商品名
                                &quot;type_name&quot;: &quot;RL&quot;,  //规格名
                                &quot;materiel_no&quot;: &quot;KK3IiInU&quot;,  //商品编号
                                &quot;materiel_img&quot;: &quot;/uploads/2022/06/21/wHiNMOfp3AI2J2NZm2jcaBAn65rBaSskbRgwuH6l.jpg&quot;, //商品图
                                &quot;s_class_name&quot;: &quot;5-2&quot;,  //二级分类名
                                &quot;s_class_no&quot;: &quot;dbl2&quot;,   //二级分类编号
                                &quot;f_class_name&quot;: &quot;5&quot;,    //一级分类名
                                &quot;f_class_no&quot;: &quot;mAyG&quot;,   //二级分类编号
                                &quot;storage_name&quot;: &quot;6&quot;,    //仓库名
                                &quot;in_storage_num&quot;: 10137 //库存数量
                            }
                        ]
                    }
                ],
               &quot;driver&quot;:  {
                    &quot;id&quot;: 5,    //司机主键id
                    &quot;plate_number&quot;: &quot;皖A*98098&quot;,    //车牌   
                    &quot;name&quot;: &quot;陈&quot;,                   //司机姓名
                    &quot;phone&quot;: &quot;18966558879&quot;,         //提货司机电话
                    &quot;logistics_company&quot;: &quot;&quot;,        //物流公司
                    &quot;remark&quot;: &quot;&quot;,                   //备注
                    &quot;plate_image&quot;: &quot;k.png&quot;,         //车牌照片
                    &quot;id_card_image&quot;: &quot;ks.png&quot;,      //身份证照片
                    &quot;driving_licence&quot;: &quot;kks.png&quot;,   //驾驶证照片
                    &quot;sell_id&quot;: 8,                   //销售单主键id
                }
            }
        ],
                ......
        &quot;total&quot;: 3 //总条数
    }
}
</code></pre></blockquote>
<h3 id="-">销售单预出库</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售单预出库</td>
<td>http</td>
<td>post</td>
<td>sell_prepare_out</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>goods_info</td>
<td>是</td>
<td>否</td>
<td>销售单商品信息</td>
<td>json</td>
<td>1</td>
</tr>
<tr>
<td>package_info</td>
<td>是</td>
<td>否</td>
<td>销售单套餐信息</td>
<td>json</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数 <code>goods_info</code></p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>sell_goods_id</td>
<td>是</td>
<td>否</td>
<td>销售单商品id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>库存id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数 <code>package_info</code></p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>sell_package_id</td>
<td>是</td>
<td>否</td>
<td>销售单套餐id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>package_content</td>
<td>是</td>
<td>否</td>
<td>销售单套餐内容</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数 <code>package_content</code></p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>sell_package_content_id</td>
<td>是</td>
<td>否</td>
<td>销售单套餐内容id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">销售单详细</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售单详细</td>
<td>http</td>
<td>post</td>
<td>sell_detail （detail_sell_find[无token]）</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注
接口<code>detail_sell_find</code>的请求方式为get</p>
</blockquote>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 4,    //销售单主键id
                &quot;main_id&quot;: 7,    //
                &quot;user_id&quot;: 7,    //
                &quot;customer_name&quot;: &quot;张三&quot;,    //客户姓名
                &quot;consignee&quot;: &quot;&quot;,    //收货人
                &quot;phone&quot;: &quot;&quot;,    //联系电话
                &quot;address&quot;: &quot;&quot;,    //收货地址
                &quot;proof_image&quot;: null,    //凭证图片(多图逗号分隔)
                &quot;discount&quot;: null,    //折扣 ：百分比
                &quot;discount&quot;: 80,         //折扣
                &quot;tax_rate&quot;: null,    // 税率 ：百分比
                &quot;tax_rate&quot;: 10,    //税率
                &quot;final_money&quot;: &quot;4.60&quot;,    //实际应收金额（即折扣或抹零后价格不含运费）
                &quot;money&quot;: &quot;4.60&quot;,    //货款金额（纯商品金额）
                &quot;real_money&quot;: &quot;0.00&quot;,    //实收金额（实际入账）
                &quot;is_zero_suppression&quot;: 0,    //是否抹零：0-否 1-是
                &quot;other_charges&quot;: &quot;0.00&quot;,    //其他费用
                &quot;remark&quot;: null,    //备注
                &quot;total_piece&quot;:0, //总件数
                &quot;out_order_no&quot;: &quot;&quot;,    //外部单号
                &quot;order_no&quot;: &quot;S71648103178833&quot;,    //订单号-内部单号
                &quot;sell_date&quot;: &quot;2021-11-02 13:22:23&quot;,    //销售时间
                &quot;logistics_company&quot;: &quot;&quot;,    //物流公司
                &quot;logistics_order_no&quot;: &quot;&quot;,    //物流单号
                &quot;out_status&quot;: 0,    //出库状态：0-待出库 1-部分出库 2-全部出库
                &quot;pay_status&quot;: 0,    //付款状态：0-待付款 1-部分付款 2-全部付款
                &quot;order_time&quot;: null,    //下单时间
                &quot;deliver_time&quot;: null,    //发货时间
                &quot;deliver_person&quot;: &quot;&quot;,    //发货人
                &quot;deliver_phone&quot;: &quot;&quot;,    //发货人联系方式
                &quot;deliver_addr&quot;: &quot;&quot;,    //发货地址
                &quot;repeal_status&quot;: 0,    //撤销状态：0-未撤销 1-已撤销
                &quot;deliver_goods_type&quot;: 0,    //发货方式：1-自提 2-代发 3-送货
                &quot;transport_type&quot;: 0,    //运输方式：1-空运 2-海运 3-铁路 4-公路
                &quot;is_draft&quot;: 0,    //是否草稿：1-是 0-否
                &quot;created_at&quot;: &quot;2022-03-24 14:26:18&quot;,
                &quot;updated_at&quot;: &quot;2022-03-24 14:26:18&quot;,
                &quot;username&quot;: &quot;15505523456&quot;,    //操作人账号
                &quot;nickname&quot;: &quot;用户昵称1&quot;,    //操作人昵称
                //销售单商品信息部分
                &quot;materiel_info&quot;: [
                    {
                        &quot;sell_goods_id&quot;: 1, 销售单商品id
                        &quot;name&quot;: &quot;艾纯深海盐肌补水泡泡膜&quot;,    //商品名
                        &quot;type_name&quot;: &quot;泡泡&quot;,    //归革命
                        &quot;price&quot;: &quot;2.30&quot;,    //售价
                        &quot;cost_price&quot;: &quot;0.00&quot;,    //商品成本
                        &quot;num&quot;: 2,    //商品数量
                        &quot;out_num&quot;: 2,    //已出库商品数量
                        &quot;materiel_no&quot;: &quot;&quot;,    //商品编号
                        &quot;image&quot;: &quot;&quot;,    //商品图片
                        &quot;warehouse&quot;: &quot;B2-6栋&quot;,    //仓库名称
                        &quot;warehouse_id&quot;: 4,    //仓库id
                        &quot;piece&quot;: 0,    //件数
                        &quot;sell_id&quot;: 4.    //销售单主键id
                        &quot;storage_manage_id&quot;: 532, 库存id
                        &quot;materiel_class_id&quot;: 7,//商品二级分类id
                        &quot;in_storage_num&quot;: null //库存数
                        &quot;goods_batch_info&quot;: [
                            {
                                &quot;id&quot;: 5,    
                                &quot;storage_batch_id&quot;: 45, //库存批次id
                                &quot;batch_no&quot;: &quot;zs202206281059041095&quot;, //商品批次编号
                                &quot;storage_manage_id&quot;: 10053, //库存id
                                &quot;sell_goods_detail_id&quot;: 296,    //销售单内商品主键id(非商品主键id)
                                &quot;sell_id&quot;: 226, //销售单id
                                &quot;main_id&quot;: 4635,    //
                                &quot;num&quot;: 2,   //数量
                                &quot;rest_num&quot;: 0,  //剩余数量
                                &quot;created_at&quot;: &quot;2022-06-27 17:14:30&quot;,
                                &quot;updated_at&quot;: &quot;2022-06-28 20:04:49&quot;
                            }
                        ],
                    }
                ],
                //销售单套餐信息部分
                &quot;package_info&quot;: [
                    {
                        &quot;id&quot;: 4,    //销售单套餐id
                        &quot;sell_package_id&quot;: 1,  //销售单套餐id
                        &quot;package_id&quot;: 52,    //套餐id
                        &quot;package_name&quot;: &quot;老蓝，5L保温箱+温度显示+1蓝冰+6冰袋&quot;,    //套餐名
                        &quot;price&quot;: &quot;2.30&quot;,    //售价
                        &quot;total_cost&quot;: &quot;0.00&quot;,    //套餐总成本
                        &quot;sell_id&quot;: 4,    //销售单id
                        &quot;num&quot;: 2,    //套餐数量
                        &quot;out_num&quot;: 0,    //已出库套餐数量
                        &quot;piece&quot;: 0,    //件数
                        &quot;package_no&quot;: &quot;zs-p202206181848318757&quot;, //套餐编号
                        //销售单套餐内容部分
                        &quot;package_content&quot;: [
                            {
                                &quot;id&quot;: 16,    // 销售单套餐内容id
                                &quot;sell_package_content_id&quot;: 1,  //销售单套餐内容id（
                                &quot;package_detail_id&quot;: 4,    ///销售单套餐id
                                &quot;materiel_name&quot;: &quot;保温箱5L&quot;,    //商品名
                                &quot;materiel_type_id&quot;: 13304,  //商品id
                                &quot;type_name&quot;: &quot;5L&quot;,    //型号
                                &quot;materiel_no&quot;: &quot;&quot;,    //商品编号
                                &quot;materiel_img&quot;: &quot;&quot;,    //商品图
                                &quot;s_class_name&quot;: &quot;保温箱&quot;,    //二级分类名
                                &quot;s_class_no&quot;: &quot;&quot;,    //二级分类编号
                                &quot;f_class_name&quot;: &quot;保温箱类&quot;,    //一级分类名
                                &quot;f_class_no&quot;: &quot;&quot;,    //一级分类编号
                                &quot;storage_name&quot;: &quot;B2-6&quot;,    //仓库地址
                                &quot;in_storage_num&quot;: 0,    //库存数
                                &quot;num&quot;: 0    //套餐内商品数量
                                &quot;total_num&quot;: 10000， //总数(套餐数量 * 套餐内商品数量)
                                &quot;package_batch_info&quot;: [
                                    {
                                        &quot;id&quot;: 2,
                                        &quot;sell_package_content_id&quot;: 42,  //销售单套餐内商品id
                                        &quot;storage_manage_id&quot;: 10031, //库存id
                                        &quot;storage_batch_id&quot;: 20, //库存批次id
                                        &quot;sell_id&quot;: 188, //
                                        &quot;main_id&quot;: 4635,    //
                                        &quot;num&quot;: 100, //数量
                                        &quot;rest_num&quot;: 0,  //剩余数量
                                        &quot;batch_no&quot;: &quot;zs202206281059041095&quot;, //商品批次编号
                                        &quot;created_at&quot;: &quot;2022-06-18 16:31:04&quot;,
                                        &quot;updated_at&quot;: &quot;2022-06-23 18:25:50&quot;
                                    }
                                ]
                            }
                        ]
                    }
                ],
               &quot;driver&quot;:  {
                    &quot;id&quot;: 5,    //司机主键id
                    &quot;plate_number&quot;: &quot;皖A*98098&quot;,    //车牌   
                    &quot;name&quot;: &quot;陈&quot;,                   //司机姓名
                    &quot;phone&quot;: &quot;18966558879&quot;,         //提货司机电话
                    &quot;logistics_company&quot;: &quot;&quot;,        //物流公司
                    &quot;remark&quot;: &quot;&quot;,                   //备注
                    &quot;plate_image&quot;: &quot;k.png&quot;,         //车牌照片
                    &quot;id_card_image&quot;: &quot;ks.png&quot;,      //身份证照片
                    &quot;driving_licence&quot;: &quot;kks.png&quot;,   //驾驶证照片
                    &quot;sell_id&quot;: 8,                   //销售单主键id
                }
        }
}
</code></pre><h3 id="-">删除指定销售单</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除销售订单</td>
<td>http</td>
<td>post</td>
<td>sell_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>第三版将第二版对销售单的删除方式从物理删除变更为逻辑删除
</code></pre></blockquote>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;success&quot;,
&quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">编辑</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑销售单</td>
<td>http</td>
<td>post</td>
<td>sell_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>修改时，套餐的数据中，`materiel_type_id`为必填，默认为0
</code></pre></blockquote>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>customer_name</td>
<td>否</td>
<td>否</td>
<td>客户姓名</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>goods_info</td>
<td>否</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td>[{&quot;name&quot;:&quot;测试&quot;,&quot;type_name&quot;:&quot;规格&quot;,&quot;price&quot;:&quot;2.30&quot;,&quot;num&quot;:2,&quot;image&quot;:&quot;商品图片地址&quot;,&quot;warehouse&quot;:&quot;仓库名称&quot;,&quot;warehouse_id&quot;:1,&quot;piece&quot;:2}]</td>
</tr>
<tr>
<td>package_info</td>
<td>否</td>
<td>否</td>
<td>套餐信息</td>
<td>array</td>
<td>[{&quot;price&quot;:&quot;60&quot;,&quot;num&quot;:2,&quot;package_id&quot;:52,&quot;piece&quot;:2,package_content&quot;:[{&quot;id&quot;:128,&quot;type_id&quot;:31,&quot;num&quot;:10,&quot;materiel_class_id&quot;:69,&quot;storage_id&quot;:33,&quot;storage_manage_id&quot;:1843}]}]</td>
</tr>
<tr>
<td>discount</td>
<td>否</td>
<td>否</td>
<td>折扣 ：百分比</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>tax_rate</td>
<td>否</td>
<td>否</td>
<td>税率 ：百分比</td>
<td>integer</td>
<td>13</td>
</tr>
<tr>
<td>is_zero_suppression</td>
<td>是</td>
<td>否</td>
<td>是否抹零：0-否 1-是</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>final_money</td>
<td>否</td>
<td>否</td>
<td>实际应收金额（即折扣或抹零后价格）如果是抹零此参数必传</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>deliver_goods_type</td>
<td>否</td>
<td>否</td>
<td>发货方式：1-自提 2-代发 3-送货</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>transport_type</td>
<td>否</td>
<td>否</td>
<td>运输方式：1-空运 2-海运 3-铁路 4-公路</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>consignee</td>
<td>否</td>
<td>否</td>
<td>收货人</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>否</td>
<td>否</td>
<td>联系方式</td>
<td>string</td>
<td>18977687686</td>
</tr>
<tr>
<td>address</td>
<td>否</td>
<td>否</td>
<td>收货地址</td>
<td>string</td>
<td>大学城</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>out_order_no</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>string</td>
<td>jojdojfo903u40jgi</td>
</tr>
<tr>
<td>sell_date</td>
<td>是</td>
<td>否</td>
<td>销售时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>is_draft</td>
<td>是</td>
<td>否</td>
<td>是否草稿：1-是 0-否</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
<tr>
<td>real_money</td>
<td>否</td>
<td>否</td>
<td>实收金额（实际入账）</td>
<td>string</td>
<td>22.90</td>
</tr>
<tr>
<td>logistics_company</td>
<td>否</td>
<td>否</td>
<td>物流公司</td>
<td>string</td>
<td>中通</td>
</tr>
<tr>
<td>logistics_order_no</td>
<td>否</td>
<td>否</td>
<td>物流单号</td>
<td>string</td>
<td>asdfadsu493f9f</td>
</tr>
<tr>
<td>order_time</td>
<td>否</td>
<td>否</td>
<td>下单时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>deliver_time</td>
<td>否</td>
<td>否</td>
<td>发货时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>deliver_person</td>
<td>否</td>
<td>否</td>
<td>发货人</td>
<td>string</td>
<td>孙总</td>
</tr>
<tr>
<td>deliver_phone</td>
<td>否</td>
<td>否</td>
<td>发货人联系方式</td>
<td>string</td>
<td>14289877837</td>
</tr>
<tr>
<td>deliver_addr</td>
<td>否</td>
<td>否</td>
<td>发货地址</td>
<td>string</td>
<td>东海大道</td>
</tr>
<tr>
<td>source</td>
<td>否</td>
<td>否</td>
<td>订单来源</td>
<td>integer</td>
<td>订单来源:0-未知 1-安卓 2-ios 3-pc 4-微信小程序 5-抖音小程序</td>
</tr>
<tr>
<td>total_piece</td>
<td>否</td>
<td>否</td>
<td>商品总件数</td>
<td>integer</td>
<td>11</td>
</tr>
<tr>
<td>driver</td>
<td>否</td>
<td>否</td>
<td>司机信息</td>
<td>obj</td>
<td>{&quot;plate_number&quot;:&quot;皖*98098&quot;,&quot;name&quot;:&quot;测试&quot;,&quot;phone&quot;:&quot;18966558879&quot;,&quot;logistics_company&quot;:&quot;&quot;,&quot;remark&quot;:&quot;&quot;,&quot;plate_image&quot;:&quot;k.png&quot;,&quot;id_card_image&quot;:&quot;ks.png&quot;,&quot;driving_licence&quot;:&quot;kks.png&quot;}</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>否</td>
<td>编号</td>
<td>string</td>
<td>452342345</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>image</td>
<td>否</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>piece</td>
<td>否</td>
<td>否</td>
<td>件数</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>package_id</td>
<td>是</td>
<td>否</td>
<td>套餐id;默认为0，非0时表示该销售单添加的是套餐内容</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>package_content</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>array</td>
<td>套餐内容</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_content</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐内容id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type_id</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>是</td>
<td>否</td>
<td>商品二级分类id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>出库仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>商品库存id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>修改套餐至销售单时，`package_id`不能为0，且`package_content`不能为空，`package_content`中`num`可以自由编辑；
修改商品至销售单时，`package_id`必须为0，且`package_content`为0
</code></pre></blockquote>
<blockquote>
<p>driver</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>plate_number</td>
<td>是</td>
<td>否</td>
<td>车牌</td>
<td>string</td>
<td>皖A*98098</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>司机姓名</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>是</td>
<td>否</td>
<td>司机电话</td>
<td>string</td>
<td>18966558875</td>
</tr>
<tr>
<td>logistics_company</td>
<td>否</td>
<td>否</td>
<td>物流公司</td>
<td>string</td>
<td>企业</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>plate_image</td>
<td>否</td>
<td>否</td>
<td>车牌照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>id_card_image</td>
<td>否</td>
<td>否</td>
<td>身份证照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>driving_licence</td>
<td>否</td>
<td>否</td>
<td>驾驶证照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;success&quot;,
&quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">收款</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>收款</td>
<td>http</td>
<td>post</td>
<td>sell_get_money</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>sell_id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>money</td>
<td>是</td>
<td>否</td>
<td>收款金额</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>collection_time</td>
<td>是</td>
<td>否</td>
<td>收款时间</td>
<td>date</td>
<td>2021-10-09</td>
</tr>
<tr>
<td>collection_account</td>
<td>是</td>
<td>否</td>
<td>收款账号</td>
<td>string</td>
<td>宏迈科技</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>收款状态：1-全部 2-部分</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;success&quot;,
&quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">重新下单</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>重新下单</td>
<td>http</td>
<td>post</td>
<td>sell_add_again</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;success&quot;,
&quot;data&quot;: 31  销售单主键id
}
</code></pre><h3 id="-">出库</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售单出库</td>
<td>http</td>
<td>post</td>
<td>sell_out</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>出入库状态：0-部分 1-全部</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>goods_info</td>
<td>否（全部是不传）</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td></td>
</tr>
<tr>
<td>package_info</td>
<td>否（全部是不传）</td>
<td>否</td>
<td>套餐信息</td>
<td>array</td>
<td></td>
</tr>
<tr>
<td>in_storage_time</td>
<td>是</td>
<td>否</td>
<td>出库时间</td>
<td>date</td>
<td>2021-09-09 20:20:11</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>package_id</td>
<td>是</td>
<td>否</td>
<td>套餐id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>batch_info</td>
<td>是</td>
<td>否</td>
<td>批次信息，默认为空数组</td>
<td>array</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>package_id</td>
<td>是</td>
<td>否</td>
<td>套餐id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>package_content</td>
<td>是</td>
<td>否</td>
<td>销售单套餐内商品信息</td>
<td>array</td>
<td></td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_content</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>package_content_id</td>
<td>是</td>
<td>否</td>
<td>销售单套餐内商品id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>销售单套餐内商品id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>batch_info</td>
<td>是</td>
<td>否</td>
<td>批次信息，默认为空数组</td>
<td>array</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>batch_info</code></p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>batch_id</td>
<td>是</td>
<td>否</td>
<td>批次主键id</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>库存id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>设置中如果开启使用批次号出库，则`batch_info`为必填项
</code></pre></blockquote>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">撤销</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>撤销</td>
<td>http</td>
<td>post</td>
<td>sell_add_again</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">销售单收款记录</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售单收款记录</td>
<td>http</td>
<td>post</td>
<td>sell_pay_history</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;order_no&quot;: &quot;S961652346240344&quot;, //内部单号
            &quot;id&quot;: 1,
            &quot;sell_id&quot;: 3,   //销售单id
            &quot;expend&quot;: &quot;1.00&quot;,    //收款金额
            &quot;collection_time&quot;: &quot;2022-05-23 13:43:00&quot;,   //收款时间
            &quot;collection_account&quot;: &quot;啊实打实大的&quot;, //收款账号
            &quot;main_id&quot;: 96,
            &quot;created_at&quot;: &quot;2022-05-23 13:43:00&quot;
        }
    ]
}
</code></pre><h3 id="-">销售单内可用批次列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加退货单</td>
<td>http</td>
<td>post</td>
<td>materiel_batch_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>条数</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>array</td>
<td></td>
</tr>
<tr>
<td>sell_id</td>
<td>是</td>
<td>否</td>
<td>销售单id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型;0:销售单内商品侧;1:销售单内套餐商品侧;</td>
<td>integer</td>
<td>13</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 10050,    //库存id
                &quot;in_storage_num&quot;: 2147483647,   //库存数
                &quot;materiel_type_id&quot;: 13313,  //商品id
                &quot;materiel_name&quot;: &quot;电脑&quot;,  //商品名
                &quot;type_name&quot;: &quot;TL&quot;,  //规格名
                &quot;materiel_no&quot;: &quot;doH7zpRr&quot;,  //商品编号
                &quot;materiel_img&quot;: &quot;/uploads/2022/06/18/B7okLs1pjwg3ObwlgKB0Iy5n9nvopIr49rrGYFjV.jpg&quot;, //商品图
                &quot;storage_id&quot;: 1836, //仓库id
                &quot;storage_name&quot;: &quot;5&quot;,    //仓库名
                &quot;batch_id&quot;: 20, //批次id
                &quot;batch_num&quot;: 100,   //批次数量
                &quot;batch_left_num&quot;: 100,    //批次剩余数量
                &quot;is_used&quot;: 0    //是否使用;0:否;1:是;
                &quot;batch_id&quot;: 39,
                &quot;in_storage_num&quot;: 10000,
            }
        ],
        &quot;total&quot;: 8
    }
}
</code></pre><h3 id="-">销售单设置批次号</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售单设置批次号</td>
<td>http</td>
<td>post</td>
<td>api/sell_add_batch</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>info</td>
<td>是</td>
<td>否</td>
<td>批次信息</td>
<td>json</td>
<td>15</td>
</tr>
<tr>
<td>sell_id</td>
<td>是</td>
<td>否</td>
<td>销售单id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型;0:销售单内商品侧;1:销售单内套餐商品侧;</td>
<td>integer</td>
<td>13</td>
</tr>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单内商品信息主键id或销售单内套餐商品信息主键id</td>
<td>integer</td>
<td>15</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>info</code>说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>batch_id</td>
<td>是</td>
<td>否</td>
<td>批次id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>库存id</td>
<td>integer</td>
<td>13</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>要使用的批次数量</td>
<td>integer</td>
<td>13</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">查看批次号</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售单设置批次号</td>
<td>http</td>
<td>post</td>
<td>api/sell_batch_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单id</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>sell_package_content_id</td>
<td>是</td>
<td>否</td>
<td>销售单内套餐商品内容id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型;0:销售单内商品侧;1:销售单内套餐商品侧;</td>
<td>integer</td>
<td>13</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 91,   //销售单内商品批次id
            &quot;batch_no&quot;: &quot;smyc2022063016212123060&quot;,  //批次号
            &quot;in_storage_num&quot;: 8690, //商品剩余库存数
            &quot;rest_num&quot;: 50, //销售单内商品批次剩余数量
            &quot;batch_left_num&quot;: 9890, //批次库存剩余数
            &quot;materiel_name&quot;: &quot;小狗&quot;,  //商品名
            &quot;type_name&quot;: &quot;KL&quot;,  //型号名
            &quot;materiel_type_id&quot;: 13305,  //商品id
            &quot;num&quot;: 50   //销售单内商品所需批次总数
            &quot;销售单内商品已出库批次数量&quot;: 0(销售单内商品所需批次总数 - 销售单内商品批次剩余数量)
        }
    ]
}
</code></pre><h3 id="-">编辑批次号数量</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑销售单内商品或销售单内套餐商品批次号数量</td>
<td>http</td>
<td>post</td>
<td>api/sell_batch_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>goods_batch_id</td>
<td>是</td>
<td>否</td>
<td>销售单内商品或套餐内商品批次id</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型;0:销售单内商品侧;1:销售单内套餐商品侧;</td>
<td>integer</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">删除指定批次号信息</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除销售单内商品或销售单内套餐商品批次信息</td>
<td>http</td>
<td>post</td>
<td>api/sell_batch_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>goods_batch_id</td>
<td>是</td>
<td>否</td>
<td>销售单内商品或套餐内商品批次id</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型;0:销售单内商品侧;1:销售单内套餐商品侧;</td>
<td>integer</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">快速出库</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>快速出库</td>
<td>http</td>
<td>post</td>
<td>api/fast_out_storage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>sell_id</td>
<td>是</td>
<td>否</td>
<td>销售单id</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>batch_no</td>
<td>是</td>
<td>否</td>
<td>批次号(后台识别商品或套餐)</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">退货</h2>
<h3 id="-">添加</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加退货单</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>customer_name</td>
<td>是</td>
<td>否</td>
<td>客户姓名</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>goods_info</td>
<td>是</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td>[{&quot;name&quot;:&quot;测试&quot;,&quot;type_name&quot;:&quot;规格&quot;,&quot;price&quot;:&quot;2.30&quot;,&quot;num&quot;:2,&quot;image&quot;:&quot;商品图片地址&quot;,&quot;warehouse&quot;:&quot;仓库名称&quot;,&quot;warehouse_id&quot;:1}]</td>
</tr>
<tr>
<td>package_info</td>
<td>否</td>
<td>否</td>
<td>套餐信息</td>
<td>array</td>
<td>[{&quot;price&quot;:&quot;60&quot;,&quot;num&quot;:2,&quot;package_id&quot;:52,&quot;package_content&quot;:[{&quot;id&quot;:128,&quot;type_id&quot;:31,&quot;num&quot;:10,&quot;materiel_class_id&quot;:69,&quot;storage_id&quot;:33,&quot;storage_manage_id&quot;:1843}]}]</td>
</tr>
<tr>
<td>discount</td>
<td>否</td>
<td>否</td>
<td>折扣 ：百分比</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>tax_rate</td>
<td>否</td>
<td>否</td>
<td>税率 ：百分比</td>
<td>integer</td>
<td>13</td>
</tr>
<tr>
<td>is_zero_suppression</td>
<td>是</td>
<td>否</td>
<td>是否抹零：0-否 1-是</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>final_money</td>
<td>否</td>
<td>否</td>
<td>实际应收金额（即折扣或抹零后价格）如果是抹零此参数必传</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>real_money</td>
<td>否</td>
<td>否</td>
<td>实收金额（实际入账）</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>out_order_no</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>string</td>
<td>jojdojfo903u40jgi</td>
</tr>
<tr>
<td>refund_date</td>
<td>是</td>
<td>否</td>
<td>退货时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>package_id</td>
<td>是</td>
<td>否</td>
<td>套餐id;默认为0，非0时表示该销售单添加的是套餐内容</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>package_content</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>array</td>
<td>套餐内容</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_content</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐内容id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type_id</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>是</td>
<td>否</td>
<td>商品二级分类id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>出库仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>商品库存id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: 32      退货单主键id
}
</code></pre><h3 id="-">详细</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>退货单详细</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_find（detail_sales_return_find[无token][请求方式：GET]）</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>退货单id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 7,                        退货单主键id
        &quot;main_id&quot;: 7,
        &quot;user_id&quot;: 7,
        &quot;customer_name&quot;: &quot;孙子&quot;,        客户姓名
        &quot;proof_image&quot;: &quot;ii.png&quot;,        凭证图片(多图逗号分隔)
        &quot;discount&quot;: 80,                 折扣 ：百分比
        &quot;tax_rate&quot;: 13,                 税率 ：百分比
        &quot;final_money&quot;: &quot;51&quot;,            实际应收金额（即折扣或抹零后价格或改价金额）
        &quot;money&quot;: &quot;55.20&quot;,               货款金额（纯商品金额）
        &quot;real_money&quot;: &quot;10.00&quot;,          实收金额（实际入账）
        &quot;is_zero_suppression&quot;: 0,       是否改价：0-否 1-是
        &quot;remark&quot;: &quot;hhh&quot;,                备注
        &quot;out_order_no&quot;: &quot;fasdfadsggogjhdghpa&quot;,      外部单号
        &quot;order_no&quot;: &quot;ST71635925491557&quot;,             订单号
        &quot;out_status&quot;: 0,                            出库状态：0-待出库 1-部分出库 2-全部出库
        &quot;pay_status&quot;: 0,                            付款状态：0-待付款 1-部分付款 2-全部付款
        &quot;refund_date&quot;: &quot;2021-09-08 00:00:00&quot;,       退货时间
        &quot;repeal_status&quot;: 0,                         撤销状态：0-未撤销 1-已撤销
        &quot;created_at&quot;: &quot;2021-11-03 15:44:51&quot;,
        &quot;updated_at&quot;: &quot;2021-11-03 15:55:34&quot;,
        &quot;return_materiel&quot;: [
            {
                &quot;materiel_type_id&quot;: 1, 商品关联id
                &quot;name&quot;: &quot;测试&quot;,             商品名称
                &quot;type_name&quot;: &quot;规格&quot;,        型号
                &quot;price&quot;: &quot;2.30&quot;,            售价
                &quot;cost_price&quot;: &quot;0.00&quot;,
                &quot;num&quot;: 2,                   商品数量
                &quot;image&quot;: &quot;商品图片地址&quot;,    商品图片
                &quot;warehouse&quot;: &quot;仓库名称&quot;,    仓库名称
                &quot;warehouse_id&quot;: 1,      
                &quot;piece&quot;: 0,                 件数
                &quot;return_id&quot;: 30,            退货单主键id
                &quot;in_storage_num&quot;: 2         在库数量
                &quot;in_num&quot;: 0,                已入库数量
                &quot;is_in&quot;: 0,                 是否入库： 1-是  0-否
                &quot;materiel_no&quot;: &quot;&quot;, 商品编号
            }
        ],
        &quot;return_package&quot;: [
            {
                &quot;id&quot;: 3,    //退货单套餐id
                &quot;package_id&quot;: 52,   //套餐id
                &quot;price&quot;: &quot;60.00&quot;,   //售价
                &quot;cost_price&quot;: &quot;12.00&quot;,  //成本价(套餐内每个商品成本*各自组成数量)
                &quot;num&quot;: 22,  //套餐数量
                &quot;in_num&quot;: 0,    //已入库数量
                &quot;is_in&quot;: 0, //是否入库： 1-是  0-否
                &quot;main_id&quot;: 7,
                &quot;return_id&quot;: 6, //退货单主键id
                &quot;created_at&quot;: &quot;2022-04-29 16:14:18&quot;,
                &quot;updated_at&quot;: null, //
                &quot;package_name&quot;: &quot;老蓝，5L保温箱+温度显示+1蓝冰+6冰袋&quot;,    //套餐名
                &quot;package_content&quot;: [
                    {
                        &quot;id&quot;: 1,    //销售单套餐内容id
                        &quot;type_id&quot;: 31,  //商品id
                        &quot;storage_id&quot;: 33,   //仓库id
                        &quot;package_content_id&quot;: 128,  //套餐原始内容id
                        &quot;storage_manage_id&quot;: 1843,  //库存id
                        &quot;return_package_id&quot;: 3, //关联退货单套餐id
                        &quot;package_id&quot;: 52,   //原始套餐id
                        &quot;num&quot;: 10,  //组成数量
                        &quot;in_num&quot;: 0,    //已入库数量
                        &quot;main_id&quot;: 7,   
                        &quot;return_id&quot;: 6, //退货单主键id
                        &quot;created_at&quot;: &quot;2022-04-29 16:14:18&quot;,    
                        &quot;updated_at&quot;: null, 
                        &quot;materiel_name&quot;: &quot;保温箱5L&quot;,   //商品名
                        &quot;type_name&quot;: &quot;5L&quot;,  //商品规格名
                        &quot;storage_name&quot;: &quot;B2-6&quot;, //仓库名
                        &quot;storage_address&quot;: &quot;b 2-6&quot;, //仓库地址
                        &quot;in_storage_num&quot;: 10000 //当前库存数量
                        &quot;materiel_no&quot;: &quot;&quot;, 商品编号
                        &quot;materiel_class_id&quot;: 69, 商品二级分类id
                        &quot;class_name&quot;: &quot;保温箱&quot;  商品分类名                        
                        &quot;materiel_img&quot;: &quot;&quot;,//商品图片
                        &quot;selling_price&quot;: &quot;10.000000&quot;,//商品销售价格
                        &quot;shelf_name&quot;: &quot;默认货架&quot;,//货架
                        &quot;location_name&quot;: &quot;默认库位&quot;//库位
                    }
                ]
            }
        ]
    }
}
</code></pre><blockquote>
<p>变动内容</p>
<pre><code>`2022-08-25 16:40`:增加`shelf_id`,`location_id`,`shelf_name`,`location_name`,`materiel_img`,`selling_price`返回 
</code></pre></blockquote>
<h3 id="-">编辑</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑退货单</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>退货主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>customer_name</td>
<td>否</td>
<td>否</td>
<td>客户姓名</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>goods_info</td>
<td>是</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td>[{&quot;name&quot;:&quot;测试&quot;,&quot;type_name&quot;:&quot;规格&quot;,&quot;price&quot;:&quot;2.30&quot;,&quot;num&quot;:2,&quot;image&quot;:&quot;商品图片地址&quot;,&quot;warehouse&quot;:&quot;仓库名称&quot;,&quot;warehouse_id&quot;:1}]</td>
</tr>
<tr>
<td>package_info</td>
<td>否</td>
<td>否</td>
<td>套餐信息</td>
<td>array</td>
<td>[{&quot;price&quot;:&quot;60&quot;,&quot;num&quot;:2,&quot;package_id&quot;:52,&quot;package_content&quot;:[{&quot;id&quot;:128,&quot;type_id&quot;:31,&quot;num&quot;:10,&quot;materiel_class_id&quot;:69,&quot;storage_id&quot;:33,&quot;storage_manage_id&quot;:1843}]}]</td>
</tr>
<tr>
<td>discount</td>
<td>否</td>
<td>否</td>
<td>折扣 ：百分比</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>tax_rate</td>
<td>否</td>
<td>否</td>
<td>税率 ：百分比</td>
<td>integer</td>
<td>13</td>
</tr>
<tr>
<td>is_zero_suppression</td>
<td>是</td>
<td>否</td>
<td>是否抹零：0-否 1-是</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>final_money</td>
<td>否</td>
<td>否</td>
<td>实际应收金额（即折扣或抹零后价格）如果是抹零此参数必传</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>real_money</td>
<td>否</td>
<td>否</td>
<td>实收金额（实际入账）</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>out_order_no</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>string</td>
<td>jojdojfo903u40jgi</td>
</tr>
<tr>
<td>refund_date</td>
<td>否</td>
<td>否</td>
<td>退货时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>package_id</td>
<td>是</td>
<td>否</td>
<td>套餐id;默认为0，非0时表示该销售单添加的是套餐内容</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>package_content</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>array</td>
<td>套餐内容</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_content</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐内容id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type_id</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>是</td>
<td>否</td>
<td>商品二级分类id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>出库仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>商品库存id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">撤销</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>撤销</td>
<td>http</td>
<td>post</td>
<td>sales_return_repeal</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>退货单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">入库</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>入库</td>
<td>http</td>
<td>post</td>
<td>sales_return_in</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>退货单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>入库状态;0:部分;1:全部;</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>goods_info</td>
<td>否</td>
<td>否</td>
<td>商品信息</td>
<td>integer</td>
<td>[{&quot;materiel_type_id&quot;:13300,&quot;price&quot;:&quot;2.30&quot;,&quot;num&quot;:2,&quot;warehouse_id&quot;:1828}]</td>
</tr>
<tr>
<td>package_info</td>
<td>否</td>
<td>否</td>
<td>套餐信息</td>
<td>integer</td>
<td>[{&quot;price&quot;:&quot;60&quot;,&quot;num&quot;:11,&quot;package_id&quot;:50,&quot;package_content&quot;:[{&quot;id&quot;:14,&quot;type_id&quot;:578,&quot;num&quot;:10,&quot;materiel_class_id&quot;:247,&quot;storage_id&quot;:50,&quot;storage_manage_id&quot;:552},{&quot;id&quot;:15,&quot;type_id&quot;:577,&quot;num&quot;:10,&quot;materiel_class_id&quot;:247,&quot;storage_id&quot;:50,&quot;storage_manage_id&quot;:551}]}]</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>in_storage_time</td>
<td>是</td>
<td>否</td>
<td>入库时间</td>
<td>integer</td>
<td>2022-02-25 13:55:12</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>package_id</td>
<td>是</td>
<td>否</td>
<td>套餐id;默认为0，非0时表示该销售单添加的是套餐内容</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>package_content</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>array</td>
<td>套餐内容</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_content</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐内容id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type_id</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>是</td>
<td>否</td>
<td>商品二级分类id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>出库仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>商品库存id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
    }
}
</code></pre><h3 id="-">列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>sales_return_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>search_type</td>
<td>是</td>
<td>否</td>
<td>搜索类型(1-&gt;商品名称;2-&gt;商品编号;3-&gt;内部单号;4-&gt;外部单号;6-&gt;客户名称;8-&gt;收货人)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>订单状态(0:全部;1:新订单;2:待退款;3:已退款;4:已完结;)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>开始时间</td>
<td>date</td>
<td>2022-04-15 13:15:22</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>2022-04-15 13:15:22</td>
</tr>
<tr>
<td>repeal_status</td>
<td>是</td>
<td>否</td>
<td>撤销状态;0:否;1:是;</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>否</td>
<td>关键词</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 38,   //退货单主键id
                &quot;main_id&quot;: 96,  //主账号id
                &quot;user_id&quot;: 96,  //操作人id
                &quot;customer_name&quot;: &quot;老总&quot;,  //    客户名称
                &quot;consignee&quot;: &quot;&quot;,    //收货人
                &quot;phone&quot;: &quot;&quot;,    //联系电话    
                &quot;address&quot;: &quot;&quot;,  //地址
                &quot;proof_image&quot;: &quot;kk.png&quot;,    //凭证图片(多图逗号分隔)
                &quot;discount&quot;: 90, //折扣 ：百分百
                &quot;tax_rate&quot;: 10, //税率    
                &quot;final_money&quot;: &quot;1311.35&quot;,   //实际应收金额（即折扣或抹零后价格）        
                &quot;money&quot;: &quot;1324.60&quot;, //货款金额    
                &quot;real_money&quot;: &quot;55.20&quot;,  //实收金额（实际入账）
                &quot;is_zero_suppression&quot;: 0,   //    是否抹零：0-否 1-是
                &quot;remark&quot;: &quot;测试&quot;, //备注
                &quot;out_order_no&quot;: &quot;fasdgagasdu9f8asdf&quot;,   //外部单号
                &quot;order_no&quot;: &quot;ST961652614920322&quot;,    //订单号
                &quot;out_status&quot;: 2,    //入库状态：0-待入库 1-部分入库 2-全部入库
                &quot;pay_status&quot;: 0,    //付款状态：0-待付款 1-部分付款 2-全部付款    
                &quot;refund_date&quot;: &quot;2021-09-08 00:00:00&quot;,   //退货时间    
                &quot;repeal_status&quot;: 0, //撤销状态：0-未撤销 1-已撤销    
                &quot;created_at&quot;: &quot;2022-05-15 19:42:00&quot;,
                &quot;updated_at&quot;: &quot;2022-05-15 19:42:14&quot;,
                &quot;return_materiel&quot;: [
                    {
                        &quot;id&quot;: 54,   //退货商品主键id
                        &quot;name&quot;: &quot;德州苹果&quot;, //商品名称    
                        &quot;type_name&quot;: &quot;10cm&quot;,    //型号
                        &quot;materiel_no&quot;: &quot;0G5jp4hu&quot;,  //商品编号
                        &quot;image&quot;: &quot;/uploads/2022/05/12/mp7SBWdSvtLX6AvzmlFZhqwVoCNh68DtyDANrUQy.jpg&quot;,    //商品图
                        &quot;price&quot;: &quot;2.30&quot;,    //售价
                        &quot;num&quot;: 2,   //商品数量    
                        &quot;in_num&quot;: 22,   //已入库数量(退货单为全部入库状态时，存在已入库数量为0的情况；部分入库时为已入库的数量)
                        &quot;warehouse&quot;: &quot;仓库18&quot;,    //仓库名称
                        &quot;warehouse_id&quot;: 1828,   //仓库id
                        &quot;materiel_type_id&quot;: 13300,  //    商品关联id
                        &quot;return_id&quot;: 38,    //退货单主键id
                        &quot;cost_price&quot;: &quot;2.00&quot;    //成本价格    
                    },
                    ......
                ],
                &quot;return_package&quot;: [
                    {
                        &quot;id&quot;: 59,   //退货套餐主键id
                        &quot;package_name&quot;: &quot;123&quot;,  //套餐名
                        &quot;price&quot;: &quot;60.00&quot;,   //售价    
                        &quot;cost_price&quot;: &quot;0.00&quot;,   //成本价    
                        &quot;num&quot;: 22,  //套餐数量
                        &quot;in_num&quot;: 22,   //已入库数量(退货单为全部入库状态时，存在已入库数量为0的情况；部分入库时为已入库的数量)
                        &quot;return_id&quot;: 38,    //退货单主键id
                        &quot;package_content&quot;: [
                            {
                                &quot;id&quot;: 108,  //退货套餐内容主键id
                                &quot;type_id&quot;: 578, //商品关联id    
                                &quot;materiel_name&quot;: &quot;物料10022&quot;, //商品名
                                &quot;type_name&quot;: &quot;型号1002&quot;,  //商品型号名
                                &quot;materiel_no&quot;: &quot;&quot;,  //商品编号
                                &quot;materiel_img&quot;: &quot;&quot;, //商品图
                                &quot;materiel_class_id&quot;: 247,   //商品二级分类id
                                &quot;class_name&quot;: &quot;二级001&quot;,  //商品二级分类名称
                                &quot;storage_id&quot;: 50,   //仓库id
                                &quot;num&quot;: 10,  //套餐内容中商品所需数量
                                &quot;return_package_id&quot;: 59,    //退货套餐主键id
                                &quot;storage_name&quot;: &quot;仓库1001&quot;,   //仓库名
                                &quot;storage_address&quot;: &quot;东海大道1001号&quot;  //仓库地址
                            },
                            ......
                        ]
                    }
                    ......
                ]
            }
        ],
        &quot;total&quot;: 1  //总条数
    }
}
</code></pre><h3 id="-">付款记录</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>付款记录</td>
<td>http</td>
<td>post</td>
<td>sales_pay_history</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>退货单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;order_no&quot;: &quot;ST961653380134801&quot;, //订单号
            &quot;id&quot;: 1,
            &quot;return_id&quot;: 53, //退货单id
            &quot;money&quot;: &quot;111.00&quot;, //退款金额
            &quot;collection_time&quot;: 1612006448, //退款时间
            &quot;collection_account&quot;: &quot;阿达&quot;, //支付账号
            &quot;main_id&quot;: 96,
            &quot;created_at&quot;: &quot;2021-01-30 19:34:08&quot;
        }
    ]
}
</code></pre><h2 id="-">采购</h2>
<h3 id="-">入库</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购单-入库</td>
<td>http</td>
<td>post</td>
<td>api/materiel_in_storage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>content</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>json数组</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>入库状态:2-全部 1-部分</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>in_storage_time</td>
<td>是</td>
<td>否</td>
<td>入库时间</td>
<td>date</td>
<td>2021-11-12 13:25:20</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>content</code>示例</p>
<pre><code>[{&quot;materiel_content_id&quot;:1,&quot;storage_id&quot;:3,&quot;num&quot;:10,&quot;materiel_id&quot;:10},{&quot;materiel_content_id&quot;:4,&quot;storage_id&quot;:3,&quot;num&quot;:10,&quot;materiel_id&quot;:10}]
</code></pre></blockquote>
<blockquote>
<p><code>content</code>说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_content_id</td>
<td>是</td>
<td>否</td>
<td>采购单内容主键id</td>
<td>json数组</td>
<td>1</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>入库目标仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>采购商品单价</td>
<td>float</td>
<td>10.1</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>入库数量</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>materiel_id</td>
<td>是</td>
<td>否</td>
<td>采购单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>sdadafa</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>全部入库时，实际入库数量以数据库中存储的剩余可以操作入库数量为准，参数`num`可默认为0；
部分入库时，实际入库数量以用户手动输入的结果为准，参数`num`为用户所填写的入库物料数；
`price`可以进行手动调整后入库
</code></pre></blockquote>
<h3 id="-">列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>materiel_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>search_type</td>
<td>是</td>
<td>否</td>
<td>搜索类型(0-&gt;商品规格名;1-&gt;商品名称;2-&gt;商品编号;3-&gt;内部单号;4-&gt;外部单号;6-&gt;客户名;8-&gt;发货人)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>订单状态(0:全部;1:新订单;2:已付款(未入库);3:已完结（已付款，已入库）;4:已入货(未付款);)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>开始时间</td>
<td>date</td>
<td>2022-04-15 13:15:22</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>2022-04-15 13:15:22</td>
</tr>
<tr>
<td>repeal_status</td>
<td>是</td>
<td>否</td>
<td>撤销状态;0:否;1:是;</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>否</td>
<td>关键词</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 63,   //采购单主键id
                &quot;repeal_status&quot;: 0, //撤销状态是否撤销;0:否;1:是;
                &quot;purchase_time&quot;: &quot;2022-02-23 15:32:51&quot;, //采购时间
                &quot;supplier_name&quot;: &quot;供应商234&quot;,  //供应商名
                &quot;final_money&quot;: &quot;100.00&quot;,    //实付金额(修改价格或折扣后金额)
                &quot;out_order_no&quot;: &quot;&quot;, //外部单号
                &quot;purchase_no&quot;: &quot;20220223153301228844489&quot;,   //内部单号
                &quot;username&quot;: &quot;15267902931&quot;,  //操作人账号
                &quot;nickname&quot;: &quot;访客&quot;,   //操作人昵称
                &quot;pay_status&quot;: 0,    //付款状态：0-待付款 1-部分付款 2-全部付款
                &quot;in_storage_status&quot;: 1, //入库状态:0:待入库;1:部分入库;2:全部入库;    
                &quot;materiel_content&quot;: [
                    {
                        &quot;id&quot;: 72,   //采购单内商品主键id
                        &quot;materiel_id&quot;: 63,  //商品主键id
                        &quot;unit_price&quot;: &quot;50.00&quot;,  //单价
                        &quot;num&quot;: 2,   //需入库数量
                        &quot;rest_num&quot;: 2,  //剩余未入库数量
                        &quot;materiel_name&quot;: &quot;物料10022&quot;, //商品名
                        &quot;type_name&quot;: &quot;型号1002&quot;,  //规格名
                        &quot;materiel_no&quot;: &quot;&quot;,  //商品编号
                        &quot;materiel_img&quot;: &quot;&quot;  //商品图
                    }
                ],
                &quot;total_num&quot;: 2  //采购单内商品总数
            }
        ],
        &quot;total&quot;: 1
    }
}
</code></pre><h3 id="-">付款记录</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>付款记录</td>
<td>http</td>
<td>post</td>
<td>materiel_pay_history</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;purchase_no&quot;: &quot;ST961653380134801&quot;, //订单号
            &quot;id&quot;: 1,
            &quot;materiel_id&quot;: 53, //采购单id
            &quot;money&quot;: &quot;111.00&quot;, //退款金额
            &quot;pay_time&quot;: 1612006448, //付款时间
            &quot;payer_account&quot;: &quot;阿达&quot;, //支付账号
            &quot;main_id&quot;: 96,
            &quot;created_at&quot;: &quot;2021-01-30 19:34:08&quot;
        }
    ]
}
</code></pre><h2 id="-">报溢报损</h2>
<h3 id="-">新建</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>新建</td>
<td>http</td>
<td>post</td>
<td>overflow_breakage_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>goods_info</td>
<td>是</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td>[{&quot;name&quot;:&quot;测试&quot;,&quot;type_name&quot;:&quot;规格&quot;,&quot;num&quot;:2,&quot;image&quot;:&quot;商品图片地址&quot;,&quot;warehouse&quot;:&quot;仓库名称&quot;,&quot;warehouse_id&quot;:1,&quot;remark&quot;:&quot;备注&quot;},{&quot;name&quot;:&quot;测试1&quot;,&quot;type_name&quot;:&quot;规格&quot;,&quot;num&quot;:22,&quot;image&quot;:&quot;商品图片地址&quot;,&quot;warehouse&quot;:&quot;仓库名称1&quot;,&quot;warehouse_id&quot;:2,&quot;remark&quot;:&quot;备注&quot;}]</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>test.png,tes4.png</td>
</tr>
<tr>
<td>check_info</td>
<td>是</td>
<td>否</td>
<td>审批人信息</td>
<td>array</td>
<td>[{&quot;id&quot;:1,&quot;name&quot;:&quot;名字&quot;,&quot;mobile&quot;:&quot;手机号&quot;},{&quot;id&quot;:2,&quot;name&quot;:&quot;名字1&quot;,&quot;mobile&quot;:&quot;手机号1&quot;}]</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型：0-报溢 1-报损</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>package_info</td>
<td>是</td>
<td>否</td>
<td>套餐信息</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
</blockquote>
<pre><code>报溢单无套餐信息
</code></pre><blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>保温箱</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>型号</td>
<td>string</td>
<td>大保温箱</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>image</td>
<td>是</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>1.png</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库id</td>
<td>integer</td>
<td>仓库id</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>1号仓库</td>
</tr>
<tr>
<td>remark</td>
<td>是</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>丢失</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>否</td>
<td>编号</td>
<td>string</td>
<td>452342345</td>
</tr>
</tbody>
</table>
<blockquote>
<p>check_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>用户id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>用户昵称(nickname)</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>mobile</td>
<td>是</td>
<td>否</td>
<td>用户账号名(username)</td>
<td>string</td>
<td>13911557144</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>package_id</td>
<td>是</td>
<td>否</td>
<td>套餐id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>package_content</td>
<td>是</td>
<td>否</td>
<td>套餐id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>remark</td>
<td>是</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>丢失</td>
</tr>
</tbody>
</table>
<blockquote>
<p>package_content</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type_id</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>套餐内商品数量</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>库存id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>overflow_breakage_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型：0-报溢 1-报损</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>repeal_status</td>
<td>是</td>
<td>否</td>
<td>撤销状态：0-未撤销 1-已撤销 2-全部</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>审批状态(即入库状态):0-待审批 1-通过 2-拒绝 3-全部</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>否</td>
<td>关键词(可用于：商品名，型号名，商品编号，套餐名)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>开始时间</td>
<td>date</td>
<td>2022-04-15 13:15:22</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>2022-04-15 13:15:22</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
</blockquote>
<pre><code>报溢单无套餐信息
</code></pre><blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 6,    //报溢报损主单id
                &quot;main_id&quot;: 96,  //主账号id
                &quot;user_id&quot;: 96,  //操作人id
                &quot;status&quot;: 0,    //审批状态(即入库状态):0-待审批 1-通过 2-拒绝    
                &quot;proof_image&quot;: null,    //凭证图片(多图逗号分隔)
                &quot;type&quot;: 1,  //类型：0-报溢 1-报损
                &quot;repeal_status&quot;: 1, //撤销状态：0-未撤销 1-已撤销    
                &quot;created_at&quot;: &quot;2022-02-23 15:19:39&quot;,    //创建时间
                &quot;updated_at&quot;: &quot;2022-03-07 14:43:03&quot;,
                &quot;username&quot;: &quot;15267902931&quot;,  //
                &quot;nickname&quot;: &quot;访客&quot;,   //
                &quot;goods_info&quot;: [
                    {
                        &quot;id&quot;: 18,   //报溢报损单内商品id(非实际商品id)
                        &quot;materiel_type_id&quot;: 13300,  //商品id
                        &quot;name&quot;: &quot;德州苹果&quot;, //商品名称(废弃)
                        &quot;type_name&quot;: &quot;10cm&quot;,    //型号名
                        &quot;num&quot;: 2,   //报溢报损数量
                        &quot;image&quot;: &quot;/uploads/2022/05/12/mp7SBWdSvtLX6AvzmlFZhqwVoCNh68DtyDANrUQy.jpg&quot;,    //商品图
                        &quot;warehouse&quot;: &quot;仓库18&quot;,    //仓库名(废弃)
                        &quot;warehouse_id&quot;: 1828,   //仓库
                        &quot;remark&quot;: &quot;&quot;,   //报溢报损单内商品备注
                        &quot;main_id&quot;: 96,  //
                        &quot;o_b_main_id&quot;: 30,  //报溢报损主单id
                        &quot;materiel_no&quot;: &quot;0G5jp4hu&quot;,  //商品编号
                        &quot;created_at&quot;: &quot;2022-05-21 15:35:15&quot;,    //
                        &quot;updated_at&quot;: null, //
                        &quot;materiel_name&quot;: &quot;德州苹果&quot;,    //商品名
                        &quot;storage_name&quot;: &quot;仓库18&quot;, //仓库名
                        &quot;storage_address&quot;: &quot;jdj&quot;    //仓库地址
                    }
                ],
                &quot;package_info&quot;: [
                    {
                        &quot;id&quot;: 13,   //报溢报损单内套餐id(非实际套餐id)
                        &quot;package_id&quot;: 52,   //套餐id
                        &quot;num&quot;: 22,  //套餐报溢报损数量
                        &quot;main_id&quot;: 96,  //
                        &quot;o_b_main_id&quot;: 26,  //报溢报损主单id
                        &quot;remark&quot;: &quot;&quot;,   //报溢报损单内套餐备注
                        &quot;created_at&quot;: &quot;2022-05-21 13:52:19&quot;,    //
                        &quot;updated_at&quot;: null,
                        &quot;package_name&quot;: &quot;老蓝，5L保温箱+温度显示+1蓝冰+6冰袋&quot;,    //套餐名
                        &quot;package_content&quot;: [
                            {
                                &quot;id&quot;: 13,   //报溢报损单内套餐内容id(非实际套餐内容id)
                                &quot;package_id&quot;: 52,   //套餐id
                                &quot;num&quot;: 22,  //报溢报损单内套餐所需商品数量
                                &quot;total_num&quot;: 220,   //报溢报损单套餐内容总商品数量(报溢报损单内套餐所需商品数量 * 套餐报溢报损数量)
                                &quot;o_b_p_id&quot;: 13, //报溢报损单内套餐id
                                &quot;storage_manage_id&quot;: 1843,  //库存id
                                &quot;type_id&quot;: 31,  //商品id
                                &quot;storage_id&quot;: 33,   //仓库id
                                &quot;o_b_id&quot;: 26,   //报溢报损主单id
                                &quot;main_id&quot;: 96,  //
                                &quot;created_at&quot;: &quot;2022-05-21 13:52:19&quot;,    //
                                &quot;updated_at&quot;: &quot;1970-01-01 08:00:00&quot;,
                                &quot;materiel_name&quot;: &quot;保温箱5L&quot;,   //商品名
                                &quot;type_name&quot;: &quot;5L&quot;,  //型号名
                                &quot;materiel_no&quot;: &quot;&quot;,  //商品编号
                                &quot;storage_name&quot;: &quot;B2-6&quot;, //仓库名
                                &quot;storage_address&quot;: &quot;b 2-6&quot;  //仓库地址
                            }
                        ]
                    }
                ],
                &quot;check_info&quot;: [
                    {
                        &quot;id&quot;: 26,   //审批单id
                        &quot;o_b_main_id&quot;: 26,//报溢报损主单id
                        &quot;status&quot;: 0,    //审批状态：0-待审批 1-通过 2-拒绝    
                        &quot;name&quot;: &quot;名字&quot;,   //姓名    
                        &quot;mobile&quot;: &quot;手机号&quot;,    //手机号
                        &quot;admin_id&quot;: 96,
                        &quot;refund_remark&quot;: null,  //拒绝原因    
                        &quot;created_at&quot;: &quot;2022-05-21 13:52:19&quot;,
                        &quot;updated_at&quot;: null
                    }
                ]
            }
        ],
        ......
        &quot;total&quot;: 1
    }
}
</code></pre><h3 id="-">详细</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>详细</td>
<td>http</td>
<td>post</td>
<td>overflow_breakage_detail</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>销售单id</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 6,    //报溢报损主单id
        &quot;main_id&quot;: 96,  //主账号id
        &quot;user_id&quot;: 96,  //操作人id
        &quot;status&quot;: 0,    //审批状态(即入库状态):0-待审批 1-通过 2-拒绝    
        &quot;proof_image&quot;: null,    //凭证图片(多图逗号分隔)
        &quot;type&quot;: 1,  //类型：0-报溢 1-报损
        &quot;repeal_status&quot;: 1, //撤销状态：0-未撤销 1-已撤销    
        &quot;created_at&quot;: &quot;2022-02-23 15:19:39&quot;,    //创建时间
        &quot;updated_at&quot;: &quot;2022-03-07 14:43:03&quot;,
        &quot;username&quot;: &quot;15267902931&quot;,  //
        &quot;nickname&quot;: &quot;访客&quot;,   //
        &quot;goods_info&quot;: [
            {
                &quot;id&quot;: 18,   //报溢报损单内商品id(非实际商品id)
                &quot;materiel_type_id&quot;: 13300,  //商品id
                &quot;name&quot;: &quot;德州苹果&quot;, //商品名称(废弃)
                &quot;type_name&quot;: &quot;10cm&quot;,    //型号名
                &quot;num&quot;: 2,   //报溢报损数量
                &quot;image&quot;: &quot;/uploads/2022/05/12/mp7SBWdSvtLX6AvzmlFZhqwVoCNh68DtyDANrUQy.jpg&quot;,    //商品图
                &quot;warehouse&quot;: &quot;仓库18&quot;,    //仓库名(废弃)
                &quot;warehouse_id&quot;: 1828,   //仓库
                &quot;remark&quot;: &quot;&quot;,   //报溢报损单内商品备注
                &quot;main_id&quot;: 96,  //
                &quot;o_b_main_id&quot;: 30,  //报溢报损主单id
                &quot;materiel_no&quot;: &quot;0G5jp4hu&quot;,  //商品编号
                &quot;created_at&quot;: &quot;2022-05-21 15:35:15&quot;,    //
                &quot;updated_at&quot;: null, //
                &quot;materiel_name&quot;: &quot;德州苹果&quot;,    //商品名
                &quot;storage_name&quot;: &quot;仓库18&quot;, //仓库名
                &quot;storage_address&quot;: &quot;jdj&quot;    //仓库地址
            }
        ],
        &quot;package_info&quot;: [
            {
                &quot;id&quot;: 13,   //报溢报损单内套餐id(非实际套餐id)
                &quot;package_id&quot;: 52,   //套餐id
                &quot;num&quot;: 22,  //套餐报溢报损数量
                &quot;main_id&quot;: 96,  //
                &quot;o_b_main_id&quot;: 26,  //报溢报损主单id
                &quot;remark&quot;: &quot;&quot;,   //报溢报损单内套餐备注
                &quot;created_at&quot;: &quot;2022-05-21 13:52:19&quot;,    //
                &quot;updated_at&quot;: null,
                &quot;package_name&quot;: &quot;老蓝，5L保温箱+温度显示+1蓝冰+6冰袋&quot;,    //套餐名
                &quot;package_content&quot;: [
                    {
                        &quot;id&quot;: 13,   //报溢报损单内套餐内容id(非实际套餐内容id)
                        &quot;package_id&quot;: 52,   //套餐id
                        &quot;num&quot;: 22,  //报溢报损单内套餐所需商品数量
                        &quot;total_num&quot;: 220,   //报溢报损单套餐内容总商品数量(报溢报损单内套餐所需商品数量 * 套餐报溢报损数量)
                        &quot;o_b_p_id&quot;: 13, //报溢报损单内套餐id
                        &quot;storage_manage_id&quot;: 1843,  //库存id
                        &quot;type_id&quot;: 31,  //商品id
                        &quot;storage_id&quot;: 33,   //仓库id
                        &quot;o_b_id&quot;: 26,   //报溢报损主单id
                        &quot;main_id&quot;: 96,  //
                        &quot;created_at&quot;: &quot;2022-05-21 13:52:19&quot;,    //
                        &quot;updated_at&quot;: &quot;1970-01-01 08:00:00&quot;,
                        &quot;materiel_name&quot;: &quot;保温箱5L&quot;,   //商品名
                        &quot;type_name&quot;: &quot;5L&quot;,  //型号名
                        &quot;materiel_no&quot;: &quot;&quot;,  //商品编号
                        &quot;storage_name&quot;: &quot;B2-6&quot;, //仓库名
                        &quot;storage_address&quot;: &quot;b 2-6&quot;  //仓库地址
                    }
                ]
            }
        ],
        &quot;check_info&quot;: [
            {
                &quot;id&quot;: 26,   //审批单id
                &quot;o_b_main_id&quot;: 26,//报溢报损主单id
                &quot;status&quot;: 0,    //审批状态：0-待审批 1-通过 2-拒绝    
                &quot;name&quot;: &quot;名字&quot;,   //姓名    
                &quot;mobile&quot;: &quot;手机号&quot;,    //手机号
                &quot;admin_id&quot;: 96,
                &quot;refund_remark&quot;: null,  //拒绝原因    
                &quot;created_at&quot;: &quot;2022-05-21 13:52:19&quot;,
                &quot;updated_at&quot;: null
            }
        ]
    }
}
</code></pre><h3 id="-">撤销</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>详细</td>
<td>http</td>
<td>post</td>
<td>api/overflow_breakage_repeal</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>报溢报损主单 主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">审批</h2>
<h3 id="-">同意或拒绝</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>审批同意或拒绝</td>
<td>http</td>
<td>post</td>
<td>check_agree_or_refund</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>审批主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>all_id</td>
<td>是</td>
<td>否</td>
<td>关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>审批状态：0-拒绝 1-同意</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>看你不顺眼</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h1 id="-">快递模板</h1>
<h2 id="-">新建</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>新建快递模板</td>
<td>http</td>
<td>post</td>
<td>add_express_templete</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>kuaidi_id</td>
<td>是</td>
<td>否</td>
<td>快递主键id标识</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>kuaidi_name</td>
<td>是</td>
<td>否</td>
<td>快递名</td>
<td>string</td>
<td>中通</td>
</tr>
<tr>
<td>from_province</td>
<td>否</td>
<td>否</td>
<td>起始地省份</td>
<td>string</td>
<td>北京</td>
</tr>
<tr>
<td>from_city</td>
<td>否</td>
<td>否</td>
<td>起始地城市</td>
<td>string</td>
<td>北京</td>
</tr>
<tr>
<td>templete_class_info</td>
<td>否</td>
<td>否</td>
<td>快递模板信息</td>
<td>json</td>
<td>中通</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>templete_class_info</code>参数说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>templete_class_name</td>
<td>是</td>
<td>否</td>
<td>快递模板类目标题</td>
<td>string</td>
<td>爱谁谁</td>
</tr>
<tr>
<td>templete_class_rule</td>
<td>否</td>
<td>否</td>
<td>类目规则</td>
<td>json</td>
<td>爱谁谁</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>templete_class_rule</code>参数说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>rule_title</td>
<td>是</td>
<td>否</td>
<td>快递规则标题</td>
<td>string</td>
<td>爱谁谁</td>
</tr>
<tr>
<td>to_province</td>
<td>是</td>
<td>否</td>
<td>目的地省份</td>
<td>string</td>
<td>安徽</td>
</tr>
<tr>
<td>to_city</td>
<td>是</td>
<td>否</td>
<td>目的地城市</td>
<td>string</td>
<td>蚌埠</td>
</tr>
<tr>
<td>basic_weight</td>
<td>是</td>
<td>否</td>
<td>首重重量</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>basic_weight_price</td>
<td>是</td>
<td>否</td>
<td>首重首重金额</td>
<td>float</td>
<td>5</td>
</tr>
<tr>
<td>weight_throw</td>
<td>是</td>
<td>否</td>
<td>抛重比</td>
<td>float</td>
<td>6000.01</td>
</tr>
<tr>
<td>price_interval</td>
<td>否</td>
<td>否</td>
<td>续重区间</td>
<td>json</td>
<td></td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>templete_class_rule</code>参数说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>min_weight</td>
<td>否</td>
<td>否</td>
<td>重量区间最小值</td>
<td>float</td>
<td>3.5</td>
</tr>
<tr>
<td>max_weight</td>
<td>否</td>
<td>否</td>
<td>重量区间最大值;默认：99999999.99</td>
<td>float</td>
<td>3.5</td>
</tr>
<tr>
<td>price</td>
<td>否</td>
<td>否</td>
<td>区间金额</td>
<td>float</td>
<td>3.5</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">修改</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>修改快递模板</td>
<td>http</td>
<td>post</td>
<td>edit_express_templete</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>快递模板主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>kuaidi_id</td>
<td>是</td>
<td>否</td>
<td>快递主键id标识</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>kuaidi_name</td>
<td>是</td>
<td>否</td>
<td>快递名</td>
<td>string</td>
<td>中通</td>
</tr>
<tr>
<td>from_province</td>
<td>否</td>
<td>否</td>
<td>起始地省份</td>
<td>string</td>
<td>北京</td>
</tr>
<tr>
<td>from_city</td>
<td>否</td>
<td>否</td>
<td>起始地城市</td>
<td>string</td>
<td>北京</td>
</tr>
<tr>
<td>templete_class_info</td>
<td>否</td>
<td>否</td>
<td>快递模板信息</td>
<td>json</td>
<td>中通</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>templete_class_info</code>参数说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>templete_class_name</td>
<td>是</td>
<td>否</td>
<td>快递模板类目标题</td>
<td>string</td>
<td>爱谁谁</td>
</tr>
<tr>
<td>templete_class_rule</td>
<td>否</td>
<td>否</td>
<td>类目规则</td>
<td>json</td>
<td>爱谁谁</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>templete_class_rule</code>参数说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>rule_title</td>
<td>是</td>
<td>否</td>
<td>快递规则标题</td>
<td>string</td>
<td>爱谁谁</td>
</tr>
<tr>
<td>to_province</td>
<td>是</td>
<td>否</td>
<td>目的地省份</td>
<td>string</td>
<td>安徽</td>
</tr>
<tr>
<td>to_city</td>
<td>是</td>
<td>否</td>
<td>目的地城市</td>
<td>string</td>
<td>蚌埠</td>
</tr>
<tr>
<td>basic_weight</td>
<td>是</td>
<td>否</td>
<td>首重重量</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>basic_weight_price</td>
<td>是</td>
<td>否</td>
<td>首重首重金额</td>
<td>float</td>
<td>5</td>
</tr>
<tr>
<td>weight_throw</td>
<td>是</td>
<td>否</td>
<td>抛重比</td>
<td>float</td>
<td>6000.01</td>
</tr>
<tr>
<td>price_interval</td>
<td>否</td>
<td>否</td>
<td>续重区间</td>
<td>json</td>
<td></td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>templete_class_rule</code>参数说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>min_weight</td>
<td>否</td>
<td>否</td>
<td>重量区间最小值</td>
<td>float</td>
<td>3.5</td>
</tr>
<tr>
<td>max_weight</td>
<td>否</td>
<td>否</td>
<td>重量区间最大值;默认：99999999.99</td>
<td>float</td>
<td>3.5</td>
</tr>
<tr>
<td>price</td>
<td>否</td>
<td>否</td>
<td>区间金额</td>
<td>float</td>
<td>3.5</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">删除</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除快递模板</td>
<td>http</td>
<td>post</td>
<td>del_express_templete</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>快递模板主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">列表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表-快递模板</td>
<td>http</td>
<td>post</td>
<td>express_templete_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>is_page</td>
<td>否</td>
<td>否</td>
<td>是否开启分页;0:否;1:是;</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>is_page</code>为1即开启分页后请求参数,未开启时无需传入</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>条数</td>
<td>integer</td>
<td>15</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 1,    //模板id
            &quot;kuaidi_id&quot;: 1, //快递主键id标识
            &quot;kuaidi_name&quot;: &quot;1213&quot;,  //快递名
            &quot;from_province&quot;: &quot;安徽&quot;,  //始发地省份名
            &quot;from_city&quot;: &quot;蚌埠&quot;,  //始发地城市名
            &quot;is_top&quot;: 0,    //是否置顶;0:否;1:是;
            &quot;class_info&quot;: [
                {
                    &quot;id&quot;: 1,    //类目id
                    &quot;templete_class_name&quot;: &quot;11111&quot;, //类目名
                    &quot;express_templete_id&quot;: 1,   //模板主键id
                    &quot;rule_info&quot;: [
                        {
                            &quot;id&quot;: 1,    //规则主键id
                            &quot;rule_title&quot;: &quot;aaaaaa1&quot;,    //规则标题
                            &quot;to_province&quot;: &quot;aaa1&quot;,  //目的地省份名
                            &quot;to_city&quot;: &quot;aaa1&quot;,  //目的地城市名
                            &quot;basic_weight&quot;: &quot;10.20&quot;,    //首重(kg)
                            &quot;basic_weight_price&quot;: &quot;10.22&quot;,  //首重金额(元)
                            &quot;weight_throw&quot;: &quot;6000.00&quot;,  //抛重比
                            &quot;templete_class_id&quot;: 1, //类目主键id
                            &quot;interval_info&quot;: [
                                {
                                    &quot;id&quot;: 1,    //区间重量主键id
                                    &quot;min_weight&quot;: &quot;0.00&quot;,   //最小值(kg)
                                    &quot;max_weight&quot;: &quot;10.00&quot;,  //最大值(kg)
                                    &quot;price&quot;: &quot;10.00&quot;,   //区间重量所需金额(元)
                                    &quot;templete_rule_id&quot;: 1   //
                                }
                            ]
                        }
                    ]
                },
            ]
        }
    ]
}
</code></pre><h2 id="-">置顶</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>置顶快递模板</td>
<td>http</td>
<td>post</td>
<td>top_express_templete</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>快递模板主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">取消置顶</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>取消置顶快递模板</td>
<td>http</td>
<td>post</td>
<td>cancel_top_templete</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>快递模板主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">目的地城市列表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>置顶快递模板</td>
<td>http</td>
<td>post</td>
<td>termini_express_templete_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;province_name&quot;: &quot;江苏&quot;,  //省名
            &quot;city_info&quot;: [
                {
                    &quot;city_name&quot;: &quot;南京&quot;   //城市名
                },
                {
                    &quot;city_name&quot;: &quot;徐州&quot;
                }
            ]
        }
    ]
}
</code></pre><h2 id="-">详细</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>详细</td>
<td>http</td>
<td>post</td>
<td>express_templete_detail</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>快递模板主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 1,    //模板id
            &quot;kuaidi_id&quot;: 1, //快递主键id标识
            &quot;kuaidi_name&quot;: &quot;1213&quot;,  //快递名
            &quot;from_province&quot;: &quot;安徽&quot;,  //始发地省份名
            &quot;from_city&quot;: &quot;蚌埠&quot;,  //始发地城市名
            &quot;is_top&quot;: 0,    //是否置顶;0:否;1:是;
            &quot;class_info&quot;: [
                {
                    &quot;id&quot;: 1,    //类目id
                    &quot;templete_class_name&quot;: &quot;11111&quot;, //类目名
                    &quot;express_templete_id&quot;: 1,   //模板主键id
                    &quot;rule_info&quot;: [
                        {
                            &quot;id&quot;: 1,    //规则主键id
                            &quot;rule_title&quot;: &quot;aaaaaa1&quot;,    //规则标题
                            &quot;to_province&quot;: &quot;aaa1&quot;,  //目的地省份名
                            &quot;to_city&quot;: &quot;aaa1&quot;,  //目的地城市名
                            &quot;basic_weight&quot;: &quot;10.20&quot;,    //首重(kg)
                            &quot;basic_weight_price&quot;: &quot;10.22&quot;,  //首重金额(元)
                            &quot;weight_throw&quot;: &quot;6000.00&quot;,  //抛重比
                            &quot;templete_class_id&quot;: 1, //类目主键id
                            &quot;interval_info&quot;: [
                                {
                                    &quot;id&quot;: 1,    //区间重量主键id
                                    &quot;min_weight&quot;: &quot;0.00&quot;,   //最小值(kg)
                                    &quot;max_weight&quot;: &quot;10.00&quot;,  //最大值(kg)
                                    &quot;price&quot;: &quot;10.00&quot;,   //区间重量所需金额(元)
                                    &quot;templete_rule_id&quot;: 1   //
                                }
                            ]
                        }
                    ]
                },
            ]
        }
    ]
}
</code></pre><h2 id="-">一键清除快递模板</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>一键清除快递模板</td>
<td>http</td>
<td>post</td>
<td>cancel_templete</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &#39;&#39;
}
</code></pre><h1 id="-">快递费用计算</h1>
<h2 id="-">保存记录</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>详细</td>
<td>http</td>
<td>post</td>
<td>add_calc_express</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>to_province</td>
<td>是</td>
<td>否</td>
<td>目的地省份名</td>
<td>string</td>
<td>安徽</td>
</tr>
<tr>
<td>to_city</td>
<td>否</td>
<td>否</td>
<td>目的地城市名</td>
<td>string</td>
<td>蚌埠</td>
</tr>
<tr>
<td>from_province</td>
<td>否</td>
<td>否</td>
<td>起始地省份名</td>
<td>string</td>
<td>安徽</td>
</tr>
<tr>
<td>from_city</td>
<td>否</td>
<td>否</td>
<td>起始地城市名</td>
<td>string</td>
<td>蚌埠</td>
</tr>
<tr>
<td>calc_type</td>
<td>是</td>
<td>否</td>
<td>快递类型;0:一单一件;1:一单多件;</td>
<td>integer</td>
<td>安徽</td>
</tr>
<tr>
<td>calc_title</td>
<td>是</td>
<td>否</td>
<td>标题</td>
<td>string</td>
<td>蚌埠</td>
</tr>
<tr>
<td>spec_info</td>
<td>是</td>
<td>否</td>
<td>规格信息</td>
<td>string</td>
<td>蚌埠</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>spec_info</code>说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>length</td>
<td>是</td>
<td>否</td>
<td>长度</td>
<td>float</td>
<td>10.2</td>
</tr>
<tr>
<td>width</td>
<td>是</td>
<td>否</td>
<td>宽度</td>
<td>float</td>
<td>10.2</td>
</tr>
<tr>
<td>height</td>
<td>是</td>
<td>否</td>
<td>高度</td>
<td>float</td>
<td>10.2</td>
</tr>
<tr>
<td>act_weight</td>
<td>是</td>
<td>否</td>
<td>实际重量</td>
<td>float</td>
<td>10.2</td>
</tr>
<tr>
<td>amount</td>
<td>是</td>
<td>否</td>
<td>长度</td>
<td>integer</td>
<td>10.2</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>备注</code></p>
</blockquote>
<pre><code>当`calc_type`(快递类型)为0时，`spec_info`中参数`amount`仅能为1，大于1时将触发错误提醒，
提醒内容为`当前快递类型为一单一件，数量与类型不符，请重试`;
当`calc_type`(快递类型)为1时，不会触发该错误提醒;
</code></pre><blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: 6   //快递计算结果主键id
}
</code></pre><h2 id="-">编辑</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑</td>
<td>http</td>
<td>post</td>
<td>edit_calc_express</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>快递计算结果主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>to_province</td>
<td>是</td>
<td>否</td>
<td>目的地省份名</td>
<td>string</td>
<td>安徽</td>
</tr>
<tr>
<td>to_city</td>
<td>否</td>
<td>否</td>
<td>目的地城市名</td>
<td>string</td>
<td>蚌埠</td>
</tr>
<tr>
<td>from_province</td>
<td>否</td>
<td>否</td>
<td>起始地省份名</td>
<td>string</td>
<td>安徽</td>
</tr>
<tr>
<td>from_city</td>
<td>否</td>
<td>否</td>
<td>起始地城市名</td>
<td>string</td>
<td>蚌埠</td>
</tr>
<tr>
<td>calc_type</td>
<td>是</td>
<td>否</td>
<td>快递类型;0:一单一件;1:一单多件;</td>
<td>integer</td>
<td>安徽</td>
</tr>
<tr>
<td>calc_title</td>
<td>是</td>
<td>否</td>
<td>标题</td>
<td>string</td>
<td>蚌埠</td>
</tr>
<tr>
<td>spec_info</td>
<td>是</td>
<td>否</td>
<td>规格信息</td>
<td>string</td>
<td>蚌埠</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>spec_info</code>说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>length</td>
<td>是</td>
<td>否</td>
<td>长度</td>
<td>float</td>
<td>10.2</td>
</tr>
<tr>
<td>width</td>
<td>是</td>
<td>否</td>
<td>宽度</td>
<td>float</td>
<td>10.2</td>
</tr>
<tr>
<td>height</td>
<td>是</td>
<td>否</td>
<td>高度</td>
<td>float</td>
<td>10.2</td>
</tr>
<tr>
<td>act_weight</td>
<td>是</td>
<td>否</td>
<td>实际重量</td>
<td>float</td>
<td>10.2</td>
</tr>
<tr>
<td>amount</td>
<td>是</td>
<td>否</td>
<td>长度</td>
<td>integer</td>
<td>10.2</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>备注</code></p>
</blockquote>
<pre><code>当`calc_type`(快递类型)为0时，`spec_info`中参数`amount`仅能为1，大于1时将触发错误提醒，
提醒内容为`当前快递类型为一单一件，数量与类型不符，请重试`;
当`calc_type`(快递类型)为1时，不会触发该错误提醒;
</code></pre><blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &#39;&#39;
}
</code></pre><h2 id="-">列表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>list_calc_express</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 6,    //快递计算结果主键id
            &quot;calc_title&quot;: &quot;快递&quot;, //标题
            &quot;from_province&quot;: &quot;安徽&quot;,  //始发地省份名
            &quot;from_city&quot;: &quot;合肥&quot;,  //始发地城市名
            &quot;to_province&quot;: &quot;123&quot;,   //目的地省份名
            &quot;to_city&quot;: &quot;&quot;,  //目的地城市名
            &quot;calc_type&quot;: 1, //快递类型;0:一单一件;1:一单多件;
            &quot;created_at&quot;: &quot;2022-05-31 19:21:24&quot;, //保存时间
            &quot;total_amount&quot;: &quot;5&quot; //货品总数量
        },
    ]
}
</code></pre><h2 id="-">详细</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>详细</td>
<td>http</td>
<td>post</td>
<td>detail_calc_express</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>快递计算结果主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 6,    //快递计算结果主键id
        &quot;calc_title&quot;: &quot;快递&quot;, //标题
        &quot;from_province&quot;: &quot;安徽&quot;,  //始发地省份名
        &quot;from_city&quot;: &quot;合肥&quot;,  //始发地城市名
        &quot;to_province&quot;: &quot;123&quot;,   //目的地省份名
        &quot;to_city&quot;: &quot;&quot;,  //目的地城市名
        &quot;calc_type&quot;: 1, //快递类型;0:一单一件;1:一单多件;    i
        &quot;slave_info&quot;: [
            {
                &quot;id&quot;: 11,   //
                &quot;master_id&quot;: 6, //
                &quot;length&quot;: &quot;2.00&quot;,   //长度
                &quot;width&quot;: &quot;2.00&quot;,    //宽度
                &quot;height&quot;: &quot;2.00&quot;,   //高度
                &quot;act_weight&quot;: &quot;2.00&quot;,   //实际重量
                &quot;amount&quot;: 2 //数量
            },
        ]
    }
}
</code></pre><h2 id="-">删除</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除</td>
<td>http</td>
<td>post</td>
<td>del_calc_express</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>快递计算结果主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &#39;&#39;
}
</code></pre><h2 id="-">快递模板-快递列表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>快递模板-快递列表</td>
<td>http</td>
<td>post</td>
<td>get_kuaidi_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;kuaidi_id&quot;: 5, //快递id
            &quot;kuaidi_name&quot;: &quot;圆通速递&quot;   //快递名
        },
    ]
}
</code></pre><h2 id="-">计算快递结果</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>计算快递结果</td>
<td>http</td>
<td>post</td>
<td>calc_express_templete</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>结果列表中计算参数说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>快递计算结果主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>直接计算参数说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>spec_info</td>
<td>是</td>
<td>否</td>
<td>规格详情</td>
<td>string</td>
<td>[{&quot;length&quot;:51.1,&quot;width&quot;:60,&quot;height&quot;:32,&quot;act_weight&quot;:56,&quot;amount&quot;:1}]</td>
</tr>
<tr>
<td>from_province</td>
<td>否</td>
<td>否</td>
<td>始发地城市</td>
<td>string</td>
<td>安徽</td>
</tr>
<tr>
<td>from_city</td>
<td>否</td>
<td>否</td>
<td>始发地城市</td>
<td>string</td>
<td>安徽</td>
</tr>
<tr>
<td>to_province</td>
<td>是</td>
<td>否</td>
<td>目的地城市</td>
<td>string</td>
<td>江苏</td>
</tr>
<tr>
<td>to_city</td>
<td>否</td>
<td>否</td>
<td>目的地城市</td>
<td>string</td>
<td>徐州</td>
</tr>
</tbody>
</table>
<blockquote>
<p>参数<code>spec_info</code>说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>length</td>
<td>是</td>
<td>否</td>
<td>长度</td>
<td>float</td>
<td>1</td>
</tr>
<tr>
<td>width</td>
<td>是</td>
<td>否</td>
<td>宽度</td>
<td>float</td>
<td>1</td>
</tr>
<tr>
<td>height</td>
<td>是</td>
<td>否</td>
<td>高度</td>
<td>float</td>
<td>1</td>
</tr>
<tr>
<td>act_weight</td>
<td>是</td>
<td>否</td>
<td>实际重量</td>
<td>float</td>
<td>1</td>
</tr>
<tr>
<td>amount</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>float</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>公共请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>kuaidi_id</td>
<td>否</td>
<td>否</td>
<td>快递id标识，默认为0</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>sort</td>
<td>是</td>
<td>否</td>
<td>排序方式;1:降序，从高到低;0:升序，从低到高;</td>
<td>integer</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>参数备注-<code>id</code>和<code>spec_info</code>
通过列表查看结果时，需传入参数<code>id</code>，其中参数<code>spec_info</code>不需要传值;
通过前往计算按钮查看结果时，需传入参数<code>spec_info</code>，参数<code>id</code>不需要传值;
<code>id</code>和<code>spec_info</code>在一次请求中，不会同时存在；
后台根据这两种参数的传值情况自动识别,并进行计算;</p>
</blockquote>
<blockquote>
<p>排序方式说明
一组数据中存在体积重量和实际重量对应的两种金额，多组数据排序时，根据排序方式的不同，
每一组内部进行两种金额的比较，选取其中的最大值或 最小值作为初步结果，并再次依据排序
方式，对初步结果进行再次排序，并得出最终结果。</p>
</blockquote>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;sum_volume_weight&quot;: 30500, //总体积重量(计算方式：(长*宽*高)/(抛重比*数量))，多件进行累加
        &quot;sum_actul_weight&quot;: 107,    //实际重量之和，多件进行累加
        &quot;sum_amount&quot;: 4,    //实际货品总数，多件进行累加
        &quot;total_amount_weight&quot;: 428, //实际总重量（计算方式：实际总重之和*数量）
        &quot;rule_info&quot;: [
            {
                &quot;templete_class_name&quot;: &quot;大货&quot;,    //类目名
                &quot;info&quot;: {
                    &quot;id&quot;: 6,    
                    &quot;weight_throw&quot;: &quot;8000.00&quot;,  //抛重比
                    &quot;kuaidi_id&quot;: 7, //快递id
                    &quot;kuaidi_name&quot;: &quot;申通快递&quot;,  //快递名
                    &quot;to_province&quot;: &quot;安徽&quot;,  //目的地省份名
                    &quot;to_city&quot;: &quot;南京&quot;,  //目的地城市名
                    &quot;volume_weight&quot;: &quot;40.00&quot;,   //计算重量
                    &quot;actual_weight&quot;: 122,   //实际重量
                    //体积重量结果
                    &quot;interval_info&quot;: {
                        &quot;min_weight&quot;: 0,    //区间最小值
                        &quot;max_weight&quot;: &quot;3.00&quot;,   //区间最大值
                        &quot;price&quot;: &quot;6.00&quot; //所需费用
                    },
                    //实际重量结果
                    &quot;actul_weight_info&quot;: {
                        &quot;min_weight&quot;: &quot;3.00&quot;,   //区间最小值
                        &quot;max_weight&quot;: &quot;99999999.00&quot;,    //区间最大值
                        &quot;price&quot;: 8  //所需费用
                    }
                }
            },
            ......
        ]
    }
}
</code></pre><h1 id="-">综合</h1>
<h2 id="-">发送验证码</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>/send_code</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>mobile</td>
<td>是</td>
<td>否</td>
<td>手机号</td>
<td>string</td>
<td>1895555555</td>
</tr>
<tr>
<td>code_type</td>
<td>是</td>
<td>否</td>
<td>验证码类型(0:修改密码用;1:登录以及修改手机号;)</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;验证码已成功发送，请注意查收&quot;,
    &quot;data&quot;: &quot;&quot;
}

</code></pre><h2 id="-">修改密码</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>/chang_pwd</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>mobile</td>
<td>是</td>
<td>否</td>
<td>手机号</td>
<td>string</td>
<td>1895555555</td>
</tr>
<tr>
<td>code</td>
<td>是</td>
<td>否</td>
<td>验证码</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>password</td>
<td>是</td>
<td>否</td>
<td>验证码</td>
<td>string</td>
<td>123456</td>
</tr>
<tr>
<td>password_confirmation</td>
<td>是</td>
<td>否</td>
<td>确认密码</td>
<td>string</td>
<td>123456</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}

</code></pre><h1 id="-">库存管理</h1>
<h2 id="-">清除库存信息</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>清除库存信息</td>
<td>http</td>
<td>post</td>
<td>/clear_storage_manage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>否</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>123456</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">库存列表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>/storage_manage_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>每页显示条数</td>
<td>string</td>
<td>1895555555</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>storage_id</td>
<td>否</td>
<td>否</td>
<td>仓库id</td>
<td>integer</td>
<td>123456</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>否</td>
<td>是</td>
<td>物料所属二级分类id</td>
<td>integer</td>
<td>107</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>是</td>
<td>关键词(支持<code>物料名</code>,<code>物料型号</code>,<code>物料编号</code>)</td>
<td>string</td>
<td>电子体温计</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,//当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 537,//库存id
                &quot;type_id&quot;: 557,//物料id
                &quot;materiel_name&quot;: &quot;丽肤宝透明质酸补水保湿套盒&quot;,//物料名称
                &quot;type_name&quot;: &quot;5件套&quot;,//物料型号
                &quot;materiel_no&quot;: &quot;&quot;,//物料编号
                &quot;materiel_img&quot;: &#39;&#39;,//物料商品图
                &quot;materiel_mean_cost&quot;: &quot;0.00&quot;,//物料成本价
                &quot;storage_id&quot;: 48,//仓库id
                &quot;storage_name&quot;: &quot;B1-9栋&quot;,//所在仓库
                &quot;storage_address&quot;: &quot;B1-9栋&quot;,//所在仓库地址
                &quot;in_storage_num&quot;: 128,//库存数
                &quot;alert_num&quot;: 0,//低库存预警数
                &quot;f_class_id&quot;: 3,//一级分类id
                &quot;f_class_name&quot;: &quot;美妆用品&quot;,//一级分类名称
                &quot;f_class_no&quot;: &quot;&quot;//一级分类编号
                &quot;s_class_id&quot;: 9,//二级分类id
                &quot;s_class_name&quot;: &quot;护肤品套装&quot;,//二级分类名称
                &quot;s_class_no&quot;: &quot;&quot;,//二级分类编号
                &quot;remark&quot;: &quot;&quot;//商品备注
            },
            ......
        ],
        &quot;total&quot;: &quot;10&quot;,//页面大小
    }
}
</code></pre><h2 id="-">修改成本价</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>修改成本价</td>
<td>http</td>
<td>post</td>
<td>edit_materiel_cost</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>物料商品主键id</td>
<td>integer</td>
<td>1895555555</td>
</tr>
<tr>
<td>cost</td>
<td>是</td>
<td>否</td>
<td>成本金额</td>
<td>float</td>
<td>1..0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">批次列表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>批次列表</td>
<td>http</td>
<td>post</td>
<td>batch_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>库存id主键</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 10026,    //库存主键id
        &quot;type_name&quot;: &quot;10cm&quot;,    //商品名商品规格名
        &quot;materiel_name&quot;: &quot;德州苹果&quot;,    //商品名
        &quot;materiel_no&quot;: &quot;cdpQEiKX&quot;,  //编号
        &quot;batch_list&quot;: [
            {
                &quot;id&quot;: 1,    //批次主键id
                &quot;batch_no&quot;: &quot;zs202205271835109835&quot;, //批次号
                &quot;storage_manage_id&quot;: 10026, //库存主键id
                &#39;batch_num&#39;,    //批次采购数量
                &quot;batch_left_num&quot;: 10,    //剩余数量
                &quot;batch_out_num&quot;: 0, //出库数量
                &quot;batch_cost&quot;: &quot;100.00&quot;, //批次成本
                &quot;purchase_no&quot;: &quot;20220527200752117490014&quot;    //采购单号
            },
            ......
        ]
    }
}
</code></pre><h2 id="-">批次采购详情</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>批次采购详情</td>
<td>http</td>
<td>post</td>
<td>batch_materiel_info</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>库存id主键</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;batch_no&quot;: &quot;zs202205271835109835&quot;, //批次号
        &quot;batch_num&quot;: 10,    //批次入库数量
        &quot;batch_left_num&quot;: 10,   //剩余数量
        &quot;materiel_name&quot;: &quot;德州苹果&quot;,    //商品名
        &quot;type_name&quot;: &quot;10cm&quot;,    //规格名
        &quot;materiel_no&quot;: &quot;0G5jp4hu&quot;,  //商品编号
        &quot;final_money&quot;: &quot;100.00&quot;,    //实付金额
        &quot;supplier_name&quot;: &quot;吴峥&quot;,  //客户名
        &quot;storage_name&quot;: &quot;仓库2001&quot;    //仓库名
    }
}
</code></pre><h1 id="-">报表</h1>
<h2 id="-">收入或支出统计</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>收入或支出统计</td>
<td>http</td>
<td>post</td>
<td>/statement_income_expend_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>每页显示条数</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>开始时间</td>
<td>date</td>
<td>2021-02-11</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>12021-02-11</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>收支类型：0-收入 1-支出</td>
<td>date</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;total_money&quot;: &quot;1645.70&quot;,//总金额
        &quot;income_list&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                    &quot;add_time&quot;: &quot;2022-02-23 15:33:55&quot;,//添加时间
                    &quot;money&quot;: &quot;0.00&quot;,//金额
                    &quot;tally_class_name&quot;: &quot;销售&quot;//记账类型名称
                },
            ],
            &quot;total&quot;: 24
        }
    }
}
</code></pre><h2 id="-">采购报表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购报表</td>
<td>http</td>
<td>post</td>
<td>/statement_materiel</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>每页显示条数</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>开始时间</td>
<td>date</td>
<td>2021-02-11</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>12021-02-11</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;total_amount&quot;: &quot;679&quot;,  //总数
        &quot;total_price&quot;: &quot;15520.00&quot;,  //总金额
        &quot;materiel_content_info&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                    &quot;type_id&quot;: 77,  //商品id
                    &quot;materiel_name&quot;: &quot;大动物器械箱配件-抹刀&quot;, //商品名
                    &quot;type_name&quot;: &quot;抹刀&quot;,  //商品规格名
                    &quot;materiel_img&quot;: &quot;&quot;, //商品图
                    &quot;num&quot;: &quot;1&quot;  //单个商品总数
                }
            ],
            &quot;total&quot;: 9
        }
    }
}
</code></pre><h2 id="-">采购报表详细</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购报表</td>
<td>http</td>
<td>post</td>
<td>/statement_materiel_detail</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type_id</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>integer</td>
<td>578</td>
</tr>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>每页显示条数</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>开始时间</td>
<td>date</td>
<td>2021-02-11</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>12021-02-11</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;total_amount&quot;: &quot;679&quot;,  //总数量
        &quot;total_price&quot;: &quot;15520.00&quot;,  //总金额
        &quot;materiel_content_info&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                &quot;type_id&quot;: 13300,   //商品id
                &quot;materiel_name&quot;: &quot;德州苹果&quot;,    //商品名
                &quot;type_name&quot;: &quot;10cm&quot;,    //商品规格名
                &quot;materiel_img&quot;: &quot;/uploads/2022/05/12/mp7SBWdSvtLX6AvzmlFZhqwVoCNh68DtyDANrUQy.jpg&quot;, //
                &quot;num&quot;: 100, //采购数量
                &quot;unit_price&quot;: &quot;10.00&quot;,  //采购单价
                &quot;purchase_time&quot;: &quot;2022-05-27 20:13:29&quot;  //采购时间
                }
            ],
            &quot;total&quot;: 20
        }
    }
}
</code></pre><h2 id="-">成本报表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>成本报表</td>
<td>http</td>
<td>post</td>
<td>/statement_cost</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type_id</td>
<td>是</td>
<td>否</td>
<td>商品id</td>
<td>integer</td>
<td>578</td>
</tr>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>每页显示条数</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>开始时间</td>
<td>date</td>
<td>2021-02-11</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>12021-02-11</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>报表类型;0:商品;1:套餐;</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>type</code>为0即商品报表时，返回说明</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;total_amount&quot;: &quot;942&quot;,  //总数
        &quot;total_cost&quot;: &quot;23690.00&quot;,  //总成本
        &quot;total_sell_price&quot;: &quot;88673.40&quot;, //总售价
        &quot;total_income&quot;: &quot;64983.40&quot;, //总利润
        &quot;sell_materiel_info&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                    &quot;materiel_type_id&quot;: 13300,  //商品id
                    &quot;materiel_name&quot;: &quot;德州苹果&quot;,    //商品名
                    &quot;type_name&quot;: &quot;10cm&quot;,    //商品规格
                    &quot;materiel_img&quot;: &quot;/uploads/2022/05/12/mp7SBWdSvtLX6AvzmlFZhqwVoCNh68DtyDANrUQy.jpg&quot;, //商品图
                    &quot;total_num&quot;: &quot;783&quot;, //单商品总数
                    &quot;total_price&quot;: &quot;3915.00&quot;,   //单商品总售价
                    &quot;total_cost&quot;: &quot;23490.00&quot;    //单商品总成本
                }
            ],
            &quot;total&quot;: 6  //
        }
    }
}
</code></pre><blockquote>
<p><code>type</code>为1即销售单套餐报表时，返回说明</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;total_amount&quot;: &quot;6&quot;,    //总数
        &quot;total_sell_price&quot;: &quot;360.00&quot;,   //总售价
        &quot;total_price&quot;: 0,   //总成本
        &quot;total_income&quot;: &quot;360.00&quot;,   //总利润
        &quot;sell_materiel_info&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                    &quot;package_id&quot;: 52,   //套餐id
                    &quot;package_name&quot;: &quot;老蓝，5L保温箱+温度显示+1蓝冰+6冰袋&quot;,    //套餐名
                    &quot;total_num&quot;: &quot;20&quot;,  //单个套餐总数
                    &quot;total_price&quot;: &quot;360.00&quot;,    //单个套餐总售价
                    &quot;total_cost&quot;: &quot;0.00&quot;    //单个套餐总成本
                }
            ],
            &quot;total&quot;: 1
        }
    }
}
</code></pre><h2 id="-">销售报表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售报表</td>
<td>http</td>
<td>post</td>
<td>/statement_sell</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>每页显示条数</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>开始时间</td>
<td>date</td>
<td>2021-02-11</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>12021-02-11</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;total_money&quot;: &quot;1342.60&quot;,   //总额
        &quot;sell_info&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                    &quot;id&quot;: 1, //销售单主键id
                    &quot;real_money&quot;: &quot;0.00&quot;,  //销售金额
                    &quot;sell_date&quot;: &quot;2022-05-12 17:03:37&quot;  //销售时间
                },
            ],
            &quot;total&quot;: 29
        }
    }
}
</code></pre><h2 id="-">仓库统计报表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>仓库统计报表</td>
<td>http</td>
<td>post</td>
<td>/statement_storage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;storage_info&quot;: [
            {
                &quot;id&quot;: 4,    //仓库id
                &quot;storage_name&quot;: &quot;B2-6栋&quot;,    //仓库名
                &quot;storage_address&quot;: &quot;B2-6栋1层&quot;,   //仓库地址
                &quot;storage_detail_info&quot;: {
                    &quot;total_amount&quot;: &quot;2358&quot;, //总数量
                    &quot;total_cost&quot;: &quot;0.00&quot;    //总成本
                }
            },
            ......
        ]
    }
}
</code></pre><h2 id="-">仓库统计详细报表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>仓库统计报表</td>
<td>http</td>
<td>post</td>
<td>/statement_storage_detail</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>storage_id</td>
<td>否</td>
<td>否</td>
<td>仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;detail_info&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                    &quot;type_id&quot;: 577, //商品id
                    &quot;materiel_name&quot;: &quot;物料1001&quot;,  //商品名
                    &quot;type_name&quot;: &quot;型号1001&quot;,  //商品规格名
                    &quot;materiel_no&quot;: &quot;8c09pvdl&quot;,  //商品编号
                    &quot;total_amount&quot;: &quot;332&quot;,  //总数量
                    &quot;total_cost&quot;: &quot;0.00&quot;    //总成本
                },
            ],
            &quot;total&quot;: 5
        }
    }
}
</code></pre><h2 id="-">客户报表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>客户报表</td>
<td>http</td>
<td>post</td>
<td>/statement_customer</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>条数</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>否</td>
<td>客户查询</td>
<td>integer</td>
<td>张三</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;next_page_url&quot;: &quot;asdfa&quot;,
        &quot;total&quot;: 7,
        &quot;customer_report&quot;: [
            {
                &quot;customer_name&quot;: &quot;李宁&quot;,  //客户名
                &quot;materiel_money&quot;: &quot;1073.68&quot;,    //采购金额
                &quot;sell_money&quot;: &quot;19400.00&quot;,   //销售金额
                &quot;income_money&quot;: 17711.72,   //利润
                &quot;customer_debt&quot;: &quot;19300.00&quot; //欠款
            },
        ]
    }
}
</code></pre><h2 id="-">客户报表详细</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>客户报表详细</td>
<td>http</td>
<td>post</td>
<td>/statement_customer_detail</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>条数</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>customer_id</td>
<td>是</td>
<td>否</td>
<td>供应商或客户id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>customer_name</td>
<td>是</td>
<td>否</td>
<td>供应商或客户名称</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>//统计类型;0:采购;1:销售;</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>公共返回参数</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;materiel_total_num&quot;: &quot;5&quot;,  //采购总数
        &quot;materiel_total_money&quot;: &quot;160.00&quot;,   //采购总金额
        &quot;sell_total_num&quot;: 100,  //销售总数
        &quot;sell_final_money&quot;: &quot;1500.00&quot;,  //销售总额
        &quot;sell_actual_pay&quot;: 0,   //实付金额
        &quot;sell_debt&quot;: &quot;1500.00&quot;, //欠款
        &quot;total_income&quot;: &quot;1340.00&quot;,  //总利润
        &quot;list_info&quot;: {
            ........
        }
    }
}
</code></pre><blockquote>
<p><code>type</code>为0时数据返回</p>
</blockquote>
<pre><code>{
    &quot;list_info&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 78,   //采购单id
                &quot;purchase_no&quot;: &quot;20220527201346867662976&quot;,   //内部单号
                &quot;purchase_time&quot;: &quot;2022-05-27 20:13:29&quot;, //采购时间
                &quot;materiel_num&quot;: &quot;5&quot;//采购件数
                &quot;final_money&quot;: &quot;1000.00&quot;,   //总额
                &quot;debt&quot;: &quot;1000.00&quot;   //欠款
            }
        ],
        &quot;total&quot;: 15
    }
}
</code></pre><blockquote>
<p><code>type</code>为1时数据返回</p>
</blockquote>
<pre><code>&quot;list_info&quot;: {
    &quot;current_page&quot;: 1,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 121,  //
            &quot;order_no&quot;: &quot;S961655191953556&quot;, //内部单号
            &quot;sell_date&quot;: &quot;2021-11-02 13:22:23&quot;, //销售日期
            &quot;sell_num&quot;: &quot;5&quot;,//销售件数
            &quot;final_money&quot;: &quot;124.60&quot;,    //总额
            &quot;debt&quot;: &quot;124.60&quot;    //欠款
        }
    ],
    &quot;total&quot;: 53
}
</code></pre><h1 id="-">快递识别</h1>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>快递识别</td>
<td>http</td>
<td>post</td>
<td>/discriminate_express_code</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>是</td>
<td>否</td>
<td>快递单号</td>
<td>string</td>
<td>231232345562</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;message&quot;: &quot;ok&quot;,
        &quot;nu&quot;: &quot;75878469239324&quot;, //单号
        &quot;ischeck&quot;: &quot;1&quot;, //是否签收标记，0未签收，1已签收
        &quot;condition&quot;: &quot;F00&quot;,
        &quot;com&quot;: &quot;zhongtong&quot;, //快递公司编码,一律用小写字母
        &quot;status&quot;: &quot;200&quot;,
        &quot;state&quot;: &quot;3&quot;,   //快递单当前状态，默认为0在途，1揽收，2疑难，3签收，4退签，5派件，8清关，14拒签等10个基础物流状态，
        &quot;data&quot;: [
            {
                &quot;time&quot;: &quot;2022-05-13 16:37:22&quot;,  //时间，原始格式
                &quot;ftime&quot;: &quot;2022-05-13 16:37:22&quot;, //格式化后时间
                &quot;context&quot;: &quot;【蚌埠新城区二部】（18109652065） 的 悠宝（18155259538） 已揽收&quot;   //内容
            }
        ],
        &quot;name&quot;: &quot;中通快递&quot;  //快递中文名
    }
}
</code></pre><h1 id="-">公告</h1>
<h2 id="-">新建</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>新建</td>
<td>http</td>
<td>post</td>
<td>/add_announce</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>title</td>
<td>是</td>
<td>否</td>
<td>标题</td>
<td>string</td>
<td>系统更新</td>
</tr>
<tr>
<td>content</td>
<td>是</td>
<td>否</td>
<td>公告内容</td>
<td>string</td>
<td>系统更新</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: 3 //新公告id
}
</code></pre><h2 id="-">修改</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>修改</td>
<td>http</td>
<td>post</td>
<td>/edit_announce</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>公告主键id</td>
<td>interge</td>
<td>1</td>
</tr>
<tr>
<td>title</td>
<td>是</td>
<td>否</td>
<td>标题</td>
<td>string</td>
<td>系统更新</td>
</tr>
<tr>
<td>content</td>
<td>是</td>
<td>否</td>
<td>公告内容</td>
<td>string</td>
<td>系统更新</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">最新公告</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>最新公告</td>
<td>http</td>
<td>post</td>
<td>/new_announce</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 2,
        &quot;title&quot;: &quot;test&quot;,    //标题
        &quot;content&quot;: &quot;123&quot;,   //内容
        &quot;is_publish&quot;: 1,    //是否发布;0:否;1:是;
        &quot;delete_flag&quot;: 0,
        &quot;created_at&quot;: &quot;2022-06-14 18:18:06&quot;,    //发布时间
        &quot;updated_at&quot;: null
    }
}
</code></pre><h2 id="-">删除</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除</td>
<td>http</td>
<td>post</td>
<td>/del_announce</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>公告主键id</td>
<td>interge</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">发布</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>发布</td>
<td>http</td>
<td>post</td>
<td>/publish_announce</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>公告主键id</td>
<td>interge</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">列表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>/list_announce</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>条数</td>
<td>interge</td>
<td>1</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>interge</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 2,
                &quot;title&quot;: &quot;test&quot;,    //标题
                &quot;content&quot;: &quot;123&quot;,   //内容
                &quot;is_publish&quot;: 1,    //是否发布;0:否;1:是;
                &quot;delete_flag&quot;: 0,
                &quot;created_at&quot;: &quot;2022-06-14 18:18:06&quot;,    //发布时间
                &quot;updated_at&quot;: null
            },
            ......
        ],
        &quot;total&quot;: 3
    }
}
</code></pre><h1 id="-">设置</h1>
<h2 id="-">是否使用批次号</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>是否使用批次号</td>
<td>http</td>
<td>post</td>
<td>/trans_out_way</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">设置批次号开头</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>是否使用批次号</td>
<td>http</td>
<td>post</td>
<td>/set_batch_title</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>batch_title</td>
<td>是</td>
<td>否</td>
<td>批次号开头</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h1 id="-">自动识别批次号编码</h1>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>自动识别批次号编码</td>
<td>http</td>
<td>post</td>
<td>/read_batch_no(无token时使用read_batch_without_token)</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>batch_no</td>
<td>是</td>
<td>否</td>
<td>条码</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>返回数据中<code>type</code>为<code>0</code>时，批次号类型为商品</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;batch_id&quot;: 22, //批次主键id
        &quot;batch_no&quot;: &quot;zs202206171842492430&quot;, //批次号
        &quot;batch_num&quot;: 10,    //批次库存总数
        &quot;batch_left_num&quot;: 10,   //批次库存剩余数量
        &quot;in_storage_num&quot;: 800,  //库存数
        &quot;type_id&quot;: 13302,   //商品id
        &quot;materiel_name&quot;: &quot;小提箱&quot;, //商品名
        &quot;type_name&quot;: &quot;XL&quot;,  //规格名
        &quot;materiel_no&quot;: &quot;40hXtu0W&quot;,  //商品编号
        &quot;storage_id&quot;: 1830, //仓库主键id
        &quot;storage_name&quot;: &quot;1&quot; //仓库名
        &quot;materiel_img&quot;: &quot;/uploads/2022/06/16/6sYie31Yvu4skHubbYsScVg6GaiQMfQCShjDjI9O.jpg&quot;,//商品图
        &quot;sell_price&quot;: &quot;200.00&quot;, //商品销售价格
        &#39;type&#39; =&gt; 0 //批次号类型;0:商品;1:套餐;
    }
}
</code></pre><blockquote>
<p>返回数据中<code>type</code>为<code>1</code>时，批次号类型为套餐</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 18,   //销售单套餐主键id
        &quot;package_no&quot;: &quot;zs-p202206171944121068&quot;, //套餐编码
        &quot;package_id&quot;: 52,   //套餐id
        &quot;package_name&quot;: &quot;老蓝，5L保温箱+温度显示+1蓝冰+6冰袋&quot;,    //套餐名
        &#39;type&#39; =&gt; 1, //批次号类型;0:商品;1:套餐;
        &#39;num&#39; =&gt; 2, //销售单内套餐数量
        &quot;package_content&quot;: [
            {
                &quot;in_storage_num&quot;: 1000, //在库数量
                &quot;type_id&quot;: 31,  //商品id
                &quot;materiel_name&quot;: &quot;保温箱5L&quot;,   //商品名
                &quot;type_name&quot;: &quot;5L&quot;,  //规格名
                &quot;materiel_no&quot;: &quot;&quot;,  //商品编号
                &quot;storage_id&quot;: 33,   //仓库id
                &quot;storage_name&quot;: &quot;B2-6&quot;, //仓库名
                &quot;package_detail_id&quot;: 18, //
                &#39;num&#39;, //单个套餐所需商品数量,
                &#39;total_num&#39; //销售单实际所需商品数量(单个套餐所需商品数量 * 销售单内套餐数量)
            }
        ]
    }
}
</code></pre><h1 id="-zlf-">画册（zlf）</h1>
<h2 id="-">画册首页</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>画册首页</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_index</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>curr_page</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>page_size</td>
<td>是</td>
<td>否</td>
<td>显示个数</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;,
    &quot;data&quot;: {
            &quot;data&quot;: [
             {
                &quot;id&quot;: 7,    //画册id
                &quot;main_id&quot;: 0, //操作人父级id
                &quot;user_id&quot;: 1, //操作人id
                &quot;p_a_name&quot;: &quot;掌上网络&quot;, //画册名称
                &quot;mobile&quot;: &quot;17681138888&quot;, //联系电话
                &quot;album_cover_img&quot;: &quot;/uploads/huace/imgs/album-cover-img/2022-06-24/x5w21em9Haq80iRSOyvAUUJRWhycSCRgCM1XJunY.png&quot;,//画册封面
                &quot;background_music&quot;: &quot;/uploads/huace/imgs/background-music/2022-06-24/4gZNVjasAYSG8ACuK0ER8jBWlqJyV06lrRqd5OOT.mp3&quot;,//背景音乐
                &quot;Album_imgs&quot;: [
                    &quot;/uploads/huace/imgs/Album-imgs/2022-06-24/TXEhd2T72Sv0fMYhWvTggdC3bixY9uSUUADqQIGT.png&quot;,
                    &quot;/uploads/huace/imgs/Album-imgs/2022-06-24/kj5cxVPTajRUJFz5vYWkbtpLthx4S8jaGFETdpNP.png&quot;,
                    &quot;/uploads/huace/imgs/Album-imgs/2022-06-24/0OCWQpErasfyNTYQcPxgRAlzc90vI70znsFJPr4k.png&quot;,
                    &quot;/uploads/huace/imgs/Album-imgs/2022-06-24/YxnCZoJXSg1pQpppkZOyDzglPSyq2BmkMSCewRAI.mp4&quot;
                ], //画册内容上传的图片(文字图片画册会返回)
               &quot;create_time&quot;: &quot;2022-06-24 09:59:36&quot;, //创建时间
                &quot;update_time&quot;: &quot;2022-06-24 09:59:36&quot;, //更新时间
                &quot;flag&quot;:&quot;img&quot;, //标签：img 图片画册，text 文字图片画册
                &quot;updated_at&quot;: null
            },
            {
                &quot;id&quot;: 30107,//商品画册id
                &quot;album_name&quot;: &quot;333&quot;,//商品画册名称
                &quot;album_img&quot;: &quot;&quot;,//商品画册图片
                &quot;create_time&quot;: 1659667649,//商品画册创建时间
                &quot;flag&quot;: &quot;goods&quot;//商品画册标签：goods
            }
            ......       
            ]
        }
    },
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;
}

</code></pre><h2 id="-">首页删除画册</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>画册首页</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_index_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>img_ids</td>
<td>否</td>
<td>否</td>
<td>图片画册id(多个用逗号分隔)</td>
<td>string</td>
<td>1,2,3</td>
</tr>
<tr>
<td>text_ids</td>
<td>否</td>
<td>否</td>
<td>文字画册id(多个用逗号分隔)</td>
<td>string</td>
<td>1,2,3</td>
</tr>
<tr>
<td>goods_album_ids</td>
<td>否</td>
<td>否</td>
<td>商品画册id(多个用逗号分隔)</td>
<td>string</td>
<td>1,2,3</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;删除成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><p>变动内容</p>
<pre><code>`2022-08-08 11:11`:增加`goods_album_ids`请求参数
</code></pre></blockquote>
<h2 id="-">图片画册上传图片（单传）</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>图片画册上传图片</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_upload</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>label_id</td>
<td>是</td>
<td>否</td>
<td>画册标签id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>hc_img</td>
<td>是</td>
<td>否</td>
<td>图片文件名</td>
<td>file</td>
<td>图片文件数据包</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0, 
    &quot;msg&quot;: &quot;上传成功&quot;, 
    &quot;data&quot;: {
        &quot;hc_img_path&quot;: &quot;/uploads/huace/imgs/Album-imgs/2022-07-26/UTUHnltRUEgfmVfp4jWtB2NyD5CFHiahFPeHgYsX.png&quot;, //图片存储路径
        &quot;label_id&quot;: &quot;2&quot;//标签id
    }
}
</code></pre><h2 id="-">图片画册</h2>
<h3 id="-">新建图片画册</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加图片画册</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_add_picture_album</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>p_a_name</td>
<td>否</td>
<td>否</td>
<td>画册名称</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>mobile</td>
<td>否</td>
<td>否</td>
<td>联系电话</td>
<td>string</td>
<td>17688888888</td>
</tr>
<tr>
<td>album_cover_img</td>
<td>否</td>
<td>否</td>
<td>画册封面</td>
<td>file</td>
<td>封面图片文件数据包</td>
</tr>
<tr>
<td>background_music</td>
<td>否</td>
<td>否</td>
<td>背景音乐</td>
<td>file</td>
<td>背景音乐文件数据包</td>
</tr>
<tr>
<td>label_data</td>
<td>否</td>
<td>否</td>
<td>标签数据包</td>
<td>array</td>
<td>[{&quot;label_id&quot;:7,&quot;label_name&quot;:&quot;掌上网络7777&quot;,&quot;Album_imgs&quot;:&quot;77.png,77.png&quot;},{&quot;label_id&quot;:8,&quot;label_name&quot;:&quot;掌上网络888&quot;,&quot;Album_imgs&quot;:&quot;888.png,888.png&quot;}]</td>
</tr>
<tr>
<td>label_id</td>
<td>否</td>
<td>否</td>
<td>标签id (标签数据包里的参数)</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>label_name</td>
<td>否</td>
<td>否</td>
<td>标签名称 (标签数据包里的参数)</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>Album_imgs</td>
<td>否</td>
<td>否</td>
<td>标签下图片 (标签数据包里的参数)</td>
<td>string</td>
<td>123132.png,23414.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0, 
    &quot;msg&quot;: &quot;添加成功&quot;, 
    &quot;data&quot;: {
        &quot;pa_id&quot;: 15
    }
}
</code></pre><h3 id="-">删除图片画册（可多选）</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除图片画册</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_del_picture_album</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_ids</td>
<td>是</td>
<td>否</td>
<td>画册id(多个用逗号分开)</td>
<td>string</td>
<td>1,2,3</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0, 
    &quot;msg&quot;: &quot;删除成功&quot;, 
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">编辑图片画册</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>修改图片画册</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_upd_picture_album</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>p_a_name</td>
<td>否</td>
<td>否</td>
<td>画册名称</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>mobile</td>
<td>否</td>
<td>否</td>
<td>联系电话</td>
<td>string</td>
<td>17688888888</td>
</tr>
<tr>
<td>album_cover_img</td>
<td>否</td>
<td>否</td>
<td>画册封面</td>
<td>file或string</td>
<td>文件类型时： 封面图片文件数据包（需要更换时传递）。字符串类型时：123.png,23143.png(以逗号分隔)</td>
</tr>
<tr>
<td>background_music</td>
<td>否</td>
<td>否</td>
<td>背景音乐</td>
<td>file或string</td>
<td>文件类型时：背景音乐文件数据包（需要更换时传递）。字符串类型时：123.mp3,23143.mp3(以逗号分隔)</td>
</tr>
<tr>
<td>label_data</td>
<td>否</td>
<td>否</td>
<td>标签数据包</td>
<td>array</td>
<td>[{&quot;label_id&quot;:7,&quot;label_name&quot;:&quot;掌上网络7777&quot;,&quot;Album_imgs&quot;:&quot;77.png,77.png&quot;},{&quot;label_id&quot;:8,&quot;label_name&quot;:&quot;掌上网络888&quot;,&quot;Album_imgs&quot;:&quot;888.png,888.png&quot;}]</td>
</tr>
<tr>
<td>label_id</td>
<td>否</td>
<td>否</td>
<td>标签id (标签数据包里的参数)</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>label_name</td>
<td>否</td>
<td>否</td>
<td>标签名称 (标签数据包里的参数)</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>Album_imgs</td>
<td>否</td>
<td>否</td>
<td>标签下图片 (标签数据包里的参数)</td>
<td>string</td>
<td>123132.png,23414.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0, 
    &quot;msg&quot;: &quot;编辑成功&quot;, 
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">图片画册列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>图片画册列表</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_picture_album_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>curr_page</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>page_size</td>
<td>是</td>
<td>否</td>
<td>显示个数</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;,
    &quot;current_page&quot;: 1, //当前页
    &quot;data&quot;: [
        {
            &quot;id&quot;: 7,    //画册id
            &quot;main_id&quot;: 0, //操作人父级id
            &quot;user_id&quot;: 1, //操作人id
            &quot;p_a_name&quot;: &quot;掌上网络&quot;, //画册名称
            &quot;mobile&quot;: &quot;17681138888&quot;, //联系电话
            &quot;album_cover_img&quot;: &quot;/uploads/huace/imgs/album-cover-img/2022-06-24/x5w21em9Haq80iRSOyvAUUJRWhycSCRgCM1XJunY.png&quot;,//画册封面
            &quot;background_music&quot;: &quot;/uploads/huace/imgs/background-music/2022-06-24/4gZNVjasAYSG8ACuK0ER8jBWlqJyV06lrRqd5OOT.mp3&quot;,//背景音乐           
              &quot;label_data&quot;: [
                    {                                             
                    &quot;id&quot;: 2, //标签id
                    &quot;pa_id&quot;: 40,  //图片画册id                  
                    &quot;label_name&quot;: &quot;掌上网络07777&quot;, //标签名称
                    &quot;sort_number&quot;: &quot;2&quot;, //排序数字
                    &quot;is_top&quot;: 1,  //置顶：1是，0否
                    &quot;Album_imgs&quot;: [ //标签下，已上传的图片
                        &quot;7777.png&quot;,
                        &quot;777.png&quot;
                    ],
                    &quot;create_time&quot;: &quot;2022-07-25 15:49:10&quot;, //创建时间
                    &quot;update_time&quot;: &quot;1970-01-01 08:00:00&quot;, //更新时间
                    },
                    ......
                ]
           &quot;create_time&quot;: &quot;2022-06-24 09:59:36&quot;, //创建时间
            &quot;update_time&quot;: &quot;2022-06-24 09:59:36&quot;, //更新时间
            &quot;updated_at&quot;: null
        },
        ......   
    ]
    ......
    &quot;total&quot;: 5  //总条数
}
</code></pre></blockquote>
<h3 id="-">预览图片画册</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>查询画册信息</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_picture_album_info</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>画册id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 3,  //画册id
        &quot;main_id&quot;: 0, //操作人父级id
        &quot;user_id&quot;: 1,  //操作人id
        &quot;p_a_name&quot;: &quot;掌上网络&quot;, //画册名称
        &quot;mobile&quot;: &quot;17681138888&quot;, //联系电话
        &quot;album_cover_img&quot;: &quot;/uploads/huace/album-cover-img/2022-06-18/sC9CYN35TO67EBdCq1q9iEDyU9GuFv2LQ7R7XfeZ.png&quot;,   //画册封面
        &quot;background_music&quot;: &quot;/uploads/huace/background-music/2022-06-18/0Jy2798etFKNffwcahbAi3EyMQ2pYVIWwqxv1F0X.mp3&quot;, //背景音乐
           &quot;label_data&quot;: [
                    {                                             
                    &quot;id&quot;: 2, //标签id
                    &quot;pa_id&quot;: 40,  //图片画册id                  
                    &quot;label_name&quot;: &quot;掌上网络07777&quot;, //标签名称
                    &quot;sort_number&quot;: &quot;2&quot;, //排序数字
                    &quot;is_top&quot;: 1,  //置顶：1是，0否
                    &quot;Album_imgs&quot;: [ //标签下，已上传的图片
                        &quot;7777.png&quot;,
                        &quot;777.png&quot;
                    ],
                    &quot;create_time&quot;: &quot;2022-07-25 15:49:10&quot;, //创建时间
                    &quot;update_time&quot;: &quot;1970-01-01 08:00:00&quot;, //更新时间
                    },
                    ......
                ]
        &quot;create_time&quot;: &quot;2022-06-18 15:23:44&quot;,//创建时间
        &quot;update_time&quot;: &quot;2022-06-18 15:23:44&quot;,//更新时间
        &quot;updated_at&quot;: null
    }
}
</code></pre><h3 id="-">编辑图片画册-删除上传的图片</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除已上传的图片【背景音乐下面的上传图片】</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_del_upload_imgs</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>label_id</td>
<td>是</td>
<td>否</td>
<td>标签id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>del_img_paths</td>
<td>是</td>
<td>否</td>
<td>原上传图片的路径（可多选）</td>
<td>string</td>
<td>123123.png,65788.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0, 
    &quot;msg&quot;: &quot;删除成功&quot;, 
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">添加图片画册标签</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加画册标签</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_add_pic_label</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字图片画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>is_top</td>
<td>否</td>
<td>否</td>
<td>置顶(1是、0否)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>sort_number</td>
<td>否</td>
<td>否</td>
<td>排序数字</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>label_name</td>
<td>否</td>
<td>否</td>
<td>标签名称</td>
<td>string</td>
<td>掌上网络</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;label_id&quot;: 8 //图片画册标签id
    }
}
</code></pre><h3 id="-">删除画册标签</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除画册标签</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_del_pic_label</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>label_id</td>
<td>是</td>
<td>否</td>
<td>内容标签id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;删除成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">修改画册标签</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>修改画册标签</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_upd_pic_label</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>图片画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>label_id</td>
<td>是</td>
<td>否</td>
<td>内容标签id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>is_top</td>
<td>否</td>
<td>否</td>
<td>置顶(1是、0否)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>sort_number</td>
<td>否</td>
<td>否</td>
<td>排序数字</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>label_name</td>
<td>否</td>
<td>否</td>
<td>标签名称</td>
<td>string</td>
<td>掌上网络</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;修改成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">查询画册标签信息</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>画册标签信息</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_pic_label_info</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>label_id</td>
<td>是</td>
<td>否</td>
<td>标签id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 2, //标签id
        &quot;pa_id&quot;: 40,  //图片画册id
        &quot;main_id&quot;: 4637, //主账号id
        &quot;user_id&quot;: 4637, //操作人id
        &quot;label_name&quot;: &quot;掌上网络07777&quot;, //标签名称
        &quot;sort_number&quot;: &quot;2&quot;, //排序数字
        &quot;is_top&quot;: 1,  //置顶：1是，0否
        &quot;Album_imgs&quot;: [ //标签下，已上传的图片
            &quot;7777.png&quot;,
            &quot;777.png&quot;
        ],
        &quot;create_time&quot;: &quot;2022-07-25 15:49:10&quot;, //创建时间
        &quot;update_time&quot;: &quot;1970-01-01 08:00:00&quot;, //更新时间
        &quot;updated_at&quot;: &quot;2022-07-26T03:04:34.000000Z&quot;
    }
}

</code></pre><h3 id="-">查询内容标签列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>标签关联内容模板列表</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_content_tags_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>curr_page</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>page_size</td>
<td>是</td>
<td>否</td>
<td>显示个数</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>sort_number</td>
<td>否</td>
<td>否</td>
<td>排序数字</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 2, //标签id
                &quot;pa_id&quot;: 40,  //图片画册id
                &quot;main_id&quot;: 4637, //主账号id
                &quot;user_id&quot;: 4637, //操作人id
                &quot;label_name&quot;: &quot;掌上网络07777&quot;, //标签名称
                &quot;sort_number&quot;: &quot;2&quot;, //排序数字
                &quot;is_top&quot;: 1,  //置顶：1是，0否
                &quot;Album_imgs&quot;: [ //标签下，已上传的图片
                    &quot;7777.png&quot;,
                    &quot;777.png&quot;
                ],
                &quot;create_time&quot;: &quot;2022-07-25 15:49:10&quot;, //创建时间
                &quot;update_time&quot;: &quot;1970-01-01 08:00:00&quot;, //更新时间
                &quot;updated_at&quot;: &quot;2022-07-26T03:04:34.000000Z&quot;
            },
            ......
        ],
        ...
        &quot;next_page_url&quot;: null,        
        &quot;total&quot;: 4
    }
}

</code></pre><h2 id="-">文字图片画册</h2>
<h3 id="-">新建文字画册</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加文字图片画册</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_add_text_img</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>p_a_name</td>
<td>否</td>
<td>否</td>
<td>画册名称</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>mobile</td>
<td>否</td>
<td>否</td>
<td>联系电话</td>
<td>string</td>
<td>17688888888</td>
</tr>
<tr>
<td>album_cover_img</td>
<td>否</td>
<td>否</td>
<td>画册封面</td>
<td>file</td>
<td>封面图片文件数据包</td>
</tr>
<tr>
<td>background_music</td>
<td>否</td>
<td>否</td>
<td>背景音乐</td>
<td>file</td>
<td>背景音乐文件数据包</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0, 
    &quot;msg&quot;: &quot;添加成功&quot;, 
    &quot;data&quot;: {
        &quot;pa_id&quot;: 15 //文字图片画册id
    }
}
</code></pre><h3 id="-">编辑文字画册</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>修改文字图片画册</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_upd_text_image</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字图片画册id</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>p_a_name</td>
<td>否</td>
<td>否</td>
<td>画册名称</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>mobile</td>
<td>否</td>
<td>否</td>
<td>联系电话</td>
<td>string</td>
<td>17688888888</td>
</tr>
<tr>
<td>album_cover_img</td>
<td>否</td>
<td>否</td>
<td>画册封面 (更换时传递，新画册封面路径)</td>
<td>string/file</td>
<td>123.png</td>
</tr>
<tr>
<td>background_music</td>
<td>否</td>
<td>否</td>
<td>背景音乐(更换时传递，新背景音乐路径)</td>
<td>string/file</td>
<td>123.mp3</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0, 
    &quot;msg&quot;: &quot;编辑成功&quot;, 
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">查询文字画册列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>查询文字画册列表</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_text_image_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>curr_page</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>page_size</td>
<td>是</td>
<td>否</td>
<td>显示个数</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1, //页码
        &quot;data&quot;: [
            {
                &quot;id&quot;: 3,  //画册id
                &quot;main_id&quot;: 0, //操作人父级id
                &quot;user_id&quot;: 1,  //操作人id
                &quot;p_a_name&quot;: &quot;掌上网络&quot;, //画册名称
                &quot;mobile&quot;: &quot;17681138888&quot;, //联系电话
                &quot;album_cover_img&quot;: &quot;/uploads/huace/album-cover-img/2022-06-18/sC9CYN35TO67EBdCq1q9iEDyU9GuFv2LQ7R7XfeZ.png&quot;,   //画册封面
                &quot;background_music&quot;: &quot;/uploads/huace/background-music/2022-06-18/0Jy2798etFKNffwcahbAi3EyMQ2pYVIWwqxv1F0X.mp3&quot;, //背景音乐                
                &quot;create_time&quot;: &quot;2022-06-18 15:23:44&quot;,//创建时间
                &quot;update_time&quot;: &quot;2022-06-18 15:23:44&quot;,//更新时间

            },
          ......  
        ],
        ......
        &quot;total&quot;: 5
        }
    }
</code></pre><h3 id="-">预览文字画册信息</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>查询文字画册信息</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_text_image_info</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字画册id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;,
    &quot;data&quot;: {       

                &quot;id&quot;: 3,  //画册id
                &quot;main_id&quot;: 0, //操作人父级id
                &quot;user_id&quot;: 1,  //操作人id
                &quot;p_a_name&quot;: &quot;掌上网络&quot;, //画册名称
                &quot;mobile&quot;: &quot;17681138888&quot;, //联系电话
                &quot;album_cover_img&quot;: &quot;/uploads/huace/album-cover-img/2022-06-18/sC9CYN35TO67EBdCq1q9iEDyU9GuFv2LQ7R7XfeZ.png&quot;,   //画册封面
                &quot;background_music&quot;: &quot;/uploads/huace/background-music/2022-06-18/0Jy2798etFKNffwcahbAi3EyMQ2pYVIWwqxv1F0X.mp3&quot;, //背景音乐                
                &quot;create_time&quot;: &quot;2022-06-18 15:23:44&quot;,//创建时间
                &quot;update_time&quot;: &quot;2022-06-18 15:23:44&quot;,//更新时间
                 &quot;content_tags_list&quot;: [//关联内容标签数据集
                {
                        &quot;id&quot;: 15, //标签id
                        &quot;content_tags&quot;: &quot;tag111&quot;, //标签名称
                        &quot;pa_id&quot;: 1, //文字画册id
                        &quot;sort_number&quot;: null, //排序数字
                        &quot;is_top&quot;: null, //置顶：1是、0否
                        &quot;content_temp_list&quot;: [ //关联内容模板数据集
                            {
                                &quot;id&quot;: 18, //模板id
                                &quot;pa_id&quot;: 1, //文字画册id
                                &quot;user_id&quot;: 1,  //操作人id
                                &quot;h5_temp_id&quot;: 1, //H5模板id
                                &quot;temp_title&quot;: &quot;首页封面模板03&quot;, //模板标题
                                &quot;temp_color&quot;: &quot;青&quot;, //模板颜色
                                &quot;temp_number&quot;: &quot;033333333&quot;, //模板序号
                                &quot;temp_content1&quot;: 首页封面模板03, //模板内容01 （模板类型为1、2、3时返回,其他类型为空）    
                                &quot;temp_content2&quot;: 首页封面模板03, //模板内容02 （模板类型为1、2时返回,其他类型为空）    
                                &quot;temp_img_video_01&quot;: [
                                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/ep2jWAzGWjBEGwu3NEpcjP3Jde2FlsGiPPRIoxzx.png&quot;,
                                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/O5vvGKhc8ZqqrHSlDESUmfIyU1EotttevjdNijcU.png&quot;,
                                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/XSZLAJd8WYHpQJ8h2TFKzduQCwpMxyKq8c1vJxsQ.png&quot;,
                                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/my6gaIvLue6nlmc2eVCJaBixFBRiJXF4eXoLWUC8.mp4&quot;
                                ], //模板素材01
                                &quot;temp_img_video_02&quot;: [
                                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/ep2jWAzGWjBEGwu3NEpcjP3Jde2FlsGiPPRIoxzx.png&quot;,
                                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/O5vvGKhc8ZqqrHSlDESUmfIyU1EotttevjdNijcU.png&quot;,
                                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/XSZLAJd8WYHpQJ8h2TFKzduQCwpMxyKq8c1vJxsQ.png&quot;,
                                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/my6gaIvLue6nlmc2eVCJaBixFBRiJXF4eXoLWUC8.mp4&quot;
                                ], //模板素材02 （模板类型为2时返回,其他类型为空）                
                                &quot;temp_type&quot;: 2, //模板类型：1、单图/单视频  2、多图/多视频 3、背景模板 4、首页封面模板
                                &quot;temp_tags_id&quot;:1, //内容标签id 
                                &quot;create_time&quot;: &quot;2022-06-22 14:20:00&quot;, //模板创建时间
                                &quot;update_time&quot;: &quot;2022-06-22 14:20:00&quot;,//模板更新时间
                                &quot;updated_at&quot;: null
                            },
                            ......
                        ]
                    },
                ......
                ]
            }       
    }
</code></pre><h3 id="-">删除文字图片画册 （可多选）</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除文字图片画册</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_del_text_image</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_ids</td>
<td>是</td>
<td>否</td>
<td>文字图片画册id（多个用逗号分割）</td>
<td>integer</td>
<td>1,2,3</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;删除成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">编辑文字画册-更换画册封面 或 背景音乐</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>更换文字画册-画册封面 或 背景音乐</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_text_cover_music</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字图片画册id</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>album_cover_img</td>
<td>是</td>
<td>否</td>
<td>画册封面</td>
<td>file</td>
<td>封面图片文件数据包（需要更换时传递）</td>
</tr>
<tr>
<td>background_music</td>
<td>是</td>
<td>否</td>
<td>背景音乐</td>
<td>file</td>
<td>背景音乐文件数据包（需要更换时传递）</td>
</tr>
<tr>
<td>old_path</td>
<td>是</td>
<td>否</td>
<td>需要更换时，传原封面图片 或 背景音乐的路径</td>
<td>string</td>
<td>12312.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;更换成功&quot;,
    &quot;data&quot;: {
        &quot;album_cover_img&quot;: &quot;213.png&quot;  //新 画册封面 或是 背景音乐 的路径
    }
}
</code></pre><h3 id="-">添加画册内容标签</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加画册内容标签</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_add_content_tags</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字图片画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>is_top</td>
<td>否</td>
<td>否</td>
<td>置顶(1是、0否)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>sort_number</td>
<td>否</td>
<td>否</td>
<td>排序数字</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>content_tags</td>
<td>否</td>
<td>否</td>
<td>标签名称</td>
<td>string</td>
<td>掌上网络</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;添加成功&quot;,
    &quot;data&quot;: {
        &quot;ct_id&quot;: 6 //内容标签id
    }
}
</code></pre><h3 id="-">删除画册内容标签</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除画册内容标签</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_del_content_tags</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>ct_id</td>
<td>是</td>
<td>否</td>
<td>内容标签id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;删除成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">修改画册内容标签</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>修改画册内容标签</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_upd_content_tags</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>ct_id</td>
<td>是</td>
<td>否</td>
<td>内容标签id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>is_top</td>
<td>否</td>
<td>否</td>
<td>置顶(1是、0否)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>sort_number</td>
<td>否</td>
<td>否</td>
<td>排序数字</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>content_tags</td>
<td>否</td>
<td>否</td>
<td>标签名称</td>
<td>string</td>
<td>掌上网络</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;修改成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">查询内容标签信息</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>标签关联内容模板信息</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_content_tags_info</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>ct_id</td>
<td>是</td>
<td>否</td>
<td>内容标签</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;,
    &quot;data&quot;: {       

                &quot;id&quot;: 5, //内容标签id                  
                &quot;pa_id&quot;: 18, //文字图片画册id
                &quot;is_top&quot;:1, //置顶：1是，0否
                &quot;sort_number&quot;:1, //排序数字     
                &quot;content_tags&quot;: &quot;掌上科技999&quot;,//内容标签名称
                &quot;content_temp_list&quot;: [ //关联内容模板数据集
                    {
                        &quot;id&quot;: 18, //模板id
                        &quot;pa_id&quot;: 1, //文字画册id
                        &quot;user_id&quot;: 1,  //操作人id
                        &quot;h5_temp_id&quot;: 1, //H5模板id
                        &quot;temp_title&quot;: &quot;首页封面模板03&quot;, //模板标题
                        &quot;temp_color&quot;: &quot;青&quot;, //模板颜色
                        &quot;temp_number&quot;: &quot;033333333&quot;, //模板序号
                        &quot;temp_content1&quot;: 首页封面模板03, //模板内容01 （模板类型为1、2、3时返回,其他类型为空）    
                        &quot;temp_content2&quot;: 首页封面模板03, //模板内容02 （模板类型为1、2时返回,其他类型为空）    
                        &quot;temp_img_video_01&quot;: [
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/ep2jWAzGWjBEGwu3NEpcjP3Jde2FlsGiPPRIoxzx.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/O5vvGKhc8ZqqrHSlDESUmfIyU1EotttevjdNijcU.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/XSZLAJd8WYHpQJ8h2TFKzduQCwpMxyKq8c1vJxsQ.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/my6gaIvLue6nlmc2eVCJaBixFBRiJXF4eXoLWUC8.mp4&quot;
                        ], //模板素材01
                        &quot;temp_img_video_02&quot;: [
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/ep2jWAzGWjBEGwu3NEpcjP3Jde2FlsGiPPRIoxzx.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/O5vvGKhc8ZqqrHSlDESUmfIyU1EotttevjdNijcU.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/XSZLAJd8WYHpQJ8h2TFKzduQCwpMxyKq8c1vJxsQ.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/my6gaIvLue6nlmc2eVCJaBixFBRiJXF4eXoLWUC8.mp4&quot;
                        ], //模板素材02 （模板类型为2时返回,其他类型为空）                
                        &quot;temp_type&quot;: 2, //模板类型：1、单图/单视频  2、多图/多视频 3、背景模板 4、首页封面模板
                        &quot;temp_tags_id&quot;:1, //内容标签id 
                        &quot;create_time&quot;: &quot;2022-06-22 14:20:00&quot;, //模板创建时间
                        &quot;update_time&quot;: &quot;2022-06-22 14:20:00&quot;,//模板更新时间
                        &quot;updated_at&quot;: null
                    },
                    ......
                ]
            }       
    }

</code></pre><h3 id="-">查询内容标签列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>标签关联内容模板列表</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_content_tags_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>curr_page</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>page_size</td>
<td>是</td>
<td>否</td>
<td>显示个数</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字画册id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 5, //内容标签id                  
                &quot;pa_id&quot;: 18,//文字图片画册id     
                &quot;content_tags&quot;: &quot;掌上科技999&quot;,//内容标签名称
                &quot;is_top&quot;:1, //置顶：1是，0否
                &quot;sort_number&quot;:1, //排序数字     
                &quot;text_content_list&quot;: [//关联内容模板数据集
                    {                        
                        &quot;id&quot;: 18, //模板id
                        &quot;pa_id&quot;: 1, //文字画册id
                        &quot;user_id&quot;: 1,  //操作人id
                        &quot;h5_temp_id&quot;: 1, //H5模板id
                        &quot;temp_title&quot;: &quot;首页封面模板03&quot;, //模板标题
                        &quot;temp_color&quot;: &quot;青&quot;, //模板颜色
                        &quot;temp_number&quot;: &quot;033333333&quot;, //模板序号
                        &quot;temp_content1&quot;: 首页封面模板03, //模板内容01 （模板类型为1、2、3时返回,其他类型为空）    
                        &quot;temp_content2&quot;: 首页封面模板03, //模板内容02 （模板类型为1、2时返回,其他类型为空）    
                        &quot;temp_img_video_01&quot;: [
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/ep2jWAzGWjBEGwu3NEpcjP3Jde2FlsGiPPRIoxzx.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/O5vvGKhc8ZqqrHSlDESUmfIyU1EotttevjdNijcU.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/XSZLAJd8WYHpQJ8h2TFKzduQCwpMxyKq8c1vJxsQ.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/my6gaIvLue6nlmc2eVCJaBixFBRiJXF4eXoLWUC8.mp4&quot;
                        ], //模板素材01
                        &quot;temp_img_video_02&quot;: [
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/ep2jWAzGWjBEGwu3NEpcjP3Jde2FlsGiPPRIoxzx.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/O5vvGKhc8ZqqrHSlDESUmfIyU1EotttevjdNijcU.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/XSZLAJd8WYHpQJ8h2TFKzduQCwpMxyKq8c1vJxsQ.png&quot;,
                            &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/my6gaIvLue6nlmc2eVCJaBixFBRiJXF4eXoLWUC8.mp4&quot;
                        ], //模板素材02 （模板类型为2时返回,其他类型为空）                
                        &quot;temp_type&quot;: 2, //模板类型：1、单图/单视频  2、多图/多视频 3、背景模板 4、首页封面模板
                        &quot;temp_tags_id&quot;:1, //内容标签id 
                        &quot;create_time&quot;: &quot;2022-06-22 14:20:00&quot;, //模板创建时间
                        &quot;update_time&quot;: &quot;2022-06-22 14:20:00&quot;,//模板更新时间
                        &quot;updated_at&quot;: null
                    },
                    ......
                ]
            },
           ......
        ],
        ......
        &quot;next_page_url&quot;: null,       
        &quot;total&quot;: 5
    }
}

</code></pre><h3 id="-">内容模板管理</h3>
<h4 id="-">新建单图/单视频模板</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>单图/单视频模板</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_add_text_temp</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字图片画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>h5_temp_id</td>
<td>否</td>
<td>否</td>
<td>H5模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>temp_title</td>
<td>否</td>
<td>否</td>
<td>模板标题</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>temp_color</td>
<td>否</td>
<td>否</td>
<td>模板颜色</td>
<td>string</td>
<td>红</td>
</tr>
<tr>
<td>temp_number</td>
<td>否</td>
<td>否</td>
<td>模板序号</td>
<td>string</td>
<td>123456</td>
</tr>
<tr>
<td>temp_content1</td>
<td>否</td>
<td>否</td>
<td>模板内容1</td>
<td>string</td>
<td>掌上网络，网络开发</td>
</tr>
<tr>
<td>temp_content2</td>
<td>否</td>
<td>否</td>
<td>模板内容2</td>
<td>string</td>
<td>掌上网络，网络开发</td>
</tr>
<tr>
<td>temp_img_video_01</td>
<td>否</td>
<td>否</td>
<td>素材图片/视频 1</td>
<td>file[]</td>
<td>素材图片/视频1文件数据包（多文件上传）</td>
</tr>
<tr>
<td>temp_type</td>
<td>是</td>
<td>否</td>
<td>模板类型：1、单图/单视频  2、多图/多视频 3、背景模板 4、首页封面模板</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>temp_tags_id</td>
<td>否</td>
<td>否</td>
<td>内容标签id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;添加成功&quot;,
    &quot;data&quot;: {
        &quot;t_id&quot;: 1  //返回新添加内容模板id
    }
}
</code></pre><h4 id="-">新建多图/多视频模板</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>多图/多视频模板</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_add_text_temp</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字图片画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>h5_temp_id</td>
<td>否</td>
<td>否</td>
<td>H5模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>temp_title</td>
<td>否</td>
<td>否</td>
<td>模板标题</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>temp_color</td>
<td>否</td>
<td>否</td>
<td>模板颜色</td>
<td>string</td>
<td>红</td>
</tr>
<tr>
<td>temp_number</td>
<td>否</td>
<td>否</td>
<td>模板序号</td>
<td>string</td>
<td>123456</td>
</tr>
<tr>
<td>temp_content1</td>
<td>否</td>
<td>否</td>
<td>模板内容1</td>
<td>string</td>
<td>掌上网络，网络开发</td>
</tr>
<tr>
<td>temp_content2</td>
<td>否</td>
<td>否</td>
<td>模板内容2</td>
<td>string</td>
<td>掌上网络，网络开发</td>
</tr>
<tr>
<td>temp_img_video_01</td>
<td>否</td>
<td>否</td>
<td>素材图片/视频 1</td>
<td>file[]</td>
<td>素材图片/视频1文件数据包（多文件上传）</td>
</tr>
<tr>
<td>temp_img_video_02</td>
<td>否</td>
<td>否</td>
<td>素材图片/视频 2（模板类型为2时传递）</td>
<td>file[]</td>
<td>素材图片/视频2文件数据包（多文件上传）</td>
</tr>
<tr>
<td>temp_type</td>
<td>是</td>
<td>否</td>
<td>模板类型：1、单图/单视频  2、多图/多视频 3、背景模板 4、首页封面模板</td>
<td>integer</td>
<td>2</td>
</tr>
<tr>
<td>temp_tags_id</td>
<td>否</td>
<td>否</td>
<td>内容标签id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;添加成功&quot;,
    &quot;data&quot;: {
        &quot;t_id&quot;: 1  //返回新添加内容模板id
    }
}
</code></pre><h4 id="-">新建背景模板</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>背景模板</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_add_text_temp</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字图片画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>h5_temp_id</td>
<td>否</td>
<td>否</td>
<td>H5模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>temp_title</td>
<td>否</td>
<td>否</td>
<td>模板标题</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>temp_color</td>
<td>否</td>
<td>否</td>
<td>模板颜色</td>
<td>string</td>
<td>红</td>
</tr>
<tr>
<td>temp_number</td>
<td>否</td>
<td>否</td>
<td>模板序号</td>
<td>string</td>
<td>123456</td>
</tr>
<tr>
<td>temp_content1</td>
<td>否</td>
<td>否</td>
<td>模板内容1</td>
<td>string</td>
<td>掌上网络，网络开发</td>
</tr>
<tr>
<td>temp_img_video_01</td>
<td>否</td>
<td>否</td>
<td>素材图片/视频 1</td>
<td>file[]</td>
<td>素材图片/视频1文件数据包（多文件上传）</td>
</tr>
<tr>
<td>temp_type</td>
<td>是</td>
<td>否</td>
<td>模板类型：1、单图/单视频  2、多图/多视频 3、背景模板 4、首页封面模板</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>temp_tags_id</td>
<td>否</td>
<td>否</td>
<td>内容标签id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;添加成功&quot;,
    &quot;data&quot;: {
        &quot;t_id&quot;: 1  //返回新添加内容模板id
    }
}
</code></pre><h4 id="-">新建首页封面模板</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>首页封面模板</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_add_text_temp</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字图片画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>h5_temp_id</td>
<td>否</td>
<td>否</td>
<td>H5模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>temp_title</td>
<td>否</td>
<td>否</td>
<td>模板标题</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>temp_color</td>
<td>否</td>
<td>否</td>
<td>模板颜色</td>
<td>string</td>
<td>红</td>
</tr>
<tr>
<td>temp_number</td>
<td>否</td>
<td>否</td>
<td>模板序号</td>
<td>string</td>
<td>123456</td>
</tr>
<tr>
<td>temp_img_video_01</td>
<td>否</td>
<td>否</td>
<td>素材图片/视频 1</td>
<td>file[]</td>
<td>素材图片/视频1文件数据包（多文件上传）</td>
</tr>
<tr>
<td>temp_type</td>
<td>是</td>
<td>否</td>
<td>模板类型：1、单图/单视频  2、多图/多视频 3、背景模板 4、首页封面模板</td>
<td>integer</td>
<td>4</td>
</tr>
<tr>
<td>temp_tags_id</td>
<td>否</td>
<td>否</td>
<td>内容标签id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;添加成功&quot;,
    &quot;data&quot;: {
        &quot;t_id&quot;: 1  //返回新添加内容模板id
    }
}
</code></pre><h4 id="-">删除内容模板</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>首页封面模板</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_del_text_temp</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>t_id</td>
<td>是</td>
<td>否</td>
<td>文字内容模板id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;删除成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">修改单图/单视频模板</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>单图/单视频模板</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_upd_text_temp</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>t_id</td>
<td>是</td>
<td>否</td>
<td>内容模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>h5_temp_id</td>
<td>否</td>
<td>否</td>
<td>H5模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>temp_title</td>
<td>否</td>
<td>否</td>
<td>模板标题</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>temp_color</td>
<td>否</td>
<td>否</td>
<td>模板颜色</td>
<td>string</td>
<td>红</td>
</tr>
<tr>
<td>temp_number</td>
<td>否</td>
<td>否</td>
<td>模板序号</td>
<td>string</td>
<td>123456</td>
</tr>
<tr>
<td>temp_content1</td>
<td>否</td>
<td>否</td>
<td>模板内容1</td>
<td>string</td>
<td>掌上网络，网络开发</td>
</tr>
<tr>
<td>temp_content2</td>
<td>否</td>
<td>否</td>
<td>模板内容2</td>
<td>string</td>
<td>掌上网络，网络开发</td>
</tr>
<tr>
<td>temp_img_video_01</td>
<td>否</td>
<td>否</td>
<td>素材图片/视频 1</td>
<td>string/file[]</td>
<td>文件类型：文件数据包（需要更换时传递）。字符串类型时：123.png,23143.png(以逗号分隔)</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;修改成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">修改多图/多视频模板</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>多图/多视频模板</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_upd_text_temp</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>t_id</td>
<td>是</td>
<td>否</td>
<td>内容模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>h5_temp_id</td>
<td>否</td>
<td>否</td>
<td>H5模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>temp_title</td>
<td>否</td>
<td>否</td>
<td>模板标题</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>temp_color</td>
<td>否</td>
<td>否</td>
<td>模板颜色</td>
<td>string</td>
<td>红</td>
</tr>
<tr>
<td>temp_number</td>
<td>否</td>
<td>否</td>
<td>模板序号</td>
<td>string</td>
<td>123456</td>
</tr>
<tr>
<td>temp_content1</td>
<td>否</td>
<td>否</td>
<td>模板内容1</td>
<td>string</td>
<td>掌上网络，网络开发</td>
</tr>
<tr>
<td>temp_content2</td>
<td>否</td>
<td>否</td>
<td>模板内容2</td>
<td>string</td>
<td>掌上网络，网络开发</td>
</tr>
<tr>
<td>temp_img_video_01</td>
<td>否</td>
<td>否</td>
<td>素材图片/视频 1</td>
<td>string/file[]</td>
<td>文件类型：文件数据包（需要更换时传递）。字符串类型时：123.png,23143.png(以逗号分隔)</td>
</tr>
<tr>
<td>temp_img_video_02</td>
<td>否</td>
<td>否</td>
<td>素材图片/视频 2（模板类型为2时传递）</td>
<td>string/file[]</td>
<td>文件类型：文件数据包（需要更换时传递）。字符串类型时：123.png,23143.png(以逗号分隔)</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
     &quot;msg&quot;: &quot;修改成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">修改背景模板</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>修改模板</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_upd_text_temp</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>t_id</td>
<td>是</td>
<td>否</td>
<td>内容模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>h5_temp_id</td>
<td>否</td>
<td>否</td>
<td>H5模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>temp_title</td>
<td>否</td>
<td>否</td>
<td>模板标题</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>temp_color</td>
<td>否</td>
<td>否</td>
<td>模板颜色</td>
<td>string</td>
<td>红</td>
</tr>
<tr>
<td>temp_number</td>
<td>否</td>
<td>否</td>
<td>模板序号</td>
<td>string</td>
<td>123456</td>
</tr>
<tr>
<td>temp_content1</td>
<td>否</td>
<td>否</td>
<td>模板内容1</td>
<td>string</td>
<td>掌上网络，网络开发</td>
</tr>
<tr>
<td>temp_img_video_01</td>
<td>否</td>
<td>否</td>
<td>素材图片/视频 1</td>
<td>string/file[]</td>
<td>文件类型：文件数据包（需要更换时传递）。字符串类型时：123.png,23143.png(以逗号分隔)</td>
</tr>
<tr>
<td>temp_type</td>
<td>是</td>
<td>否</td>
<td>模板类型：1、单图/单视频  2、多图/多视频 3、背景模板 4、首页封面模板</td>
<td>integer</td>
<td>3</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;修改成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">修改首页封面模板</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>首页封面模板</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_upd_text_temp</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>t_id</td>
<td>是</td>
<td>否</td>
<td>内容模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>h5_temp_id</td>
<td>否</td>
<td>否</td>
<td>H5模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>temp_title</td>
<td>否</td>
<td>否</td>
<td>模板标题</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>temp_color</td>
<td>否</td>
<td>否</td>
<td>模板颜色</td>
<td>string</td>
<td>红</td>
</tr>
<tr>
<td>temp_number</td>
<td>否</td>
<td>否</td>
<td>模板序号</td>
<td>string</td>
<td>123456</td>
</tr>
<tr>
<td>temp_img_video_01</td>
<td>否</td>
<td>否</td>
<td>素材图片/视频 1</td>
<td>string/file[]</td>
<td>文件类型：文件数据包（需要更换时传递）。字符串类型时：123.png,23143.png(以逗号分隔)</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;修改成功&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">查询内容模板列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>内容模板列表</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_text_temp_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pa_id</td>
<td>是</td>
<td>否</td>
<td>文字画册id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>curr_page</td>
<td>是</td>
<td>否</td>
<td>页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>page_size</td>
<td>是</td>
<td>否</td>
<td>显示个数</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1, //当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 18, //模板id
                &quot;pa_id&quot;: 1, //文字画册id
                &quot;user_id&quot;: 1,  //操作人id
                &quot;h5_temp_id&quot;: 1, //H5模板id
                &quot;temp_title&quot;: &quot;首页封面模板03&quot;, //模板标题
                &quot;temp_color&quot;: &quot;青&quot;, //模板颜色
                &quot;temp_number&quot;: &quot;033333333&quot;, //模板序号
                &quot;temp_content1&quot;: 首页封面模板03, //模板内容01 （模板类型为1、2、3时返回,其他类型为空）    
                &quot;temp_content2&quot;: 首页封面模板03, //模板内容02 （模板类型为1、2时返回,其他类型为空）    
                &quot;temp_img_video_01&quot;: [
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/ep2jWAzGWjBEGwu3NEpcjP3Jde2FlsGiPPRIoxzx.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/O5vvGKhc8ZqqrHSlDESUmfIyU1EotttevjdNijcU.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/XSZLAJd8WYHpQJ8h2TFKzduQCwpMxyKq8c1vJxsQ.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/my6gaIvLue6nlmc2eVCJaBixFBRiJXF4eXoLWUC8.mp4&quot;
                ], //模板素材01
                &quot;temp_img_video_02&quot;: [
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/ep2jWAzGWjBEGwu3NEpcjP3Jde2FlsGiPPRIoxzx.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/O5vvGKhc8ZqqrHSlDESUmfIyU1EotttevjdNijcU.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/XSZLAJd8WYHpQJ8h2TFKzduQCwpMxyKq8c1vJxsQ.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/my6gaIvLue6nlmc2eVCJaBixFBRiJXF4eXoLWUC8.mp4&quot;
                ], //模板素材02 （模板类型为2时返回,其他类型为空）                
                &quot;temp_type&quot;: 2, //模板类型：1、单图/单视频  2、多图/多视频 3、背景模板 4、首页封面模板
                &quot;temp_tags_id&quot;:1, //内容标签id 
                &quot;create_time&quot;: &quot;2022-06-22 14:20:00&quot;, //模板创建时间
                &quot;update_time&quot;: &quot;2022-06-22 14:20:00&quot;,//模板更新时间
                &quot;updated_at&quot;: null
            },
            ......
            ],
             &quot;total&quot;: 12
           }
        }

</code></pre><h4 id="-">预览内容模板信息</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>查询内容模板信息</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_text_temp_info</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>t_id</td>
<td>是</td>
<td>否</td>
<td>模板id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;查询成功&quot;,
    &quot;data&quot;: {     

                &quot;id&quot;: 18, //模板id
                &quot;pa_id&quot;: 1, //文字画册id
                &quot;user_id&quot;: 1,  //操作人id
                &quot;h5_temp_id&quot;: 1, //H5模板id
                &quot;temp_title&quot;: &quot;首页封面模板03&quot;, //模板标题
                &quot;temp_color&quot;: &quot;青&quot;, //模板颜色
                &quot;temp_number&quot;: &quot;033333333&quot;, //模板序号
                &quot;temp_content1&quot;: 首页封面模板03, //模板内容01 （模板类型为1、2、3时返回,其他类型为空）    
                &quot;temp_content2&quot;: 首页封面模板03, //模板内容02 （模板类型为1、2时返回,其他类型为空）    
                &quot;temp_img_video_01&quot;: [
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/ep2jWAzGWjBEGwu3NEpcjP3Jde2FlsGiPPRIoxzx.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/O5vvGKhc8ZqqrHSlDESUmfIyU1EotttevjdNijcU.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/XSZLAJd8WYHpQJ8h2TFKzduQCwpMxyKq8c1vJxsQ.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/my6gaIvLue6nlmc2eVCJaBixFBRiJXF4eXoLWUC8.mp4&quot;
                ], //模板素材01
                &quot;temp_img_video_02&quot;: [
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/ep2jWAzGWjBEGwu3NEpcjP3Jde2FlsGiPPRIoxzx.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/O5vvGKhc8ZqqrHSlDESUmfIyU1EotttevjdNijcU.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/XSZLAJd8WYHpQJ8h2TFKzduQCwpMxyKq8c1vJxsQ.png&quot;,
                    &quot;/uploads/huace/text/temp/temp_img_video_01/2022-06-22/my6gaIvLue6nlmc2eVCJaBixFBRiJXF4eXoLWUC8.mp4&quot;
                ], //模板素材02 （模板类型为2时返回,其他类型为空）                
                &quot;temp_type&quot;: 2, //模板类型：1、单图/单视频  2、多图/多视频 3、背景模板 4、首页封面模板
                &quot;temp_tags_id&quot;:1, //内容标签id 
                &quot;create_time&quot;: &quot;2022-06-22 14:20:00&quot;, //模板创建时间
                &quot;update_time&quot;: &quot;2022-06-22 14:20:00&quot;,//模板更新时间
                &quot;updated_at&quot;: null
            }
        }

</code></pre><h4 id="-">编辑内容模板-更换素材某个图片/视频</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>更换素材某个图片/视频</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/hc_del_img_video</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>t_id</td>
<td>是</td>
<td>否</td>
<td>内容模板id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>old_path</td>
<td>是</td>
<td>否</td>
<td>要更换的图片or视频路径</td>
<td>string</td>
<td>2132.png</td>
</tr>
<tr>
<td>temp_img_video_01</td>
<td>是</td>
<td>否</td>
<td>素材图片/视频 1（更换时传递）</td>
<td>file</td>
<td>新的素材图片/视频1文件数据包</td>
</tr>
<tr>
<td>temp_img_video_02</td>
<td>是</td>
<td>否</td>
<td>素材图片/视频2（更换时传递）</td>
<td>file</td>
<td>新的素材图片/视频2文件数据包</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;修改成功&quot;,
    &quot;data&quot;: {
    &quot;new_path&quot;:&quot;123234.png&quot; //新上传的文件路径
    }
}
</code></pre><h1 id="-zlf-">快递模板管理（zlf）</h1>
<h2 id="-">快递模板下载</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>模板下载</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/express_temp_download</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<h2 id="-">快递模板导入</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>模板导入</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/import_express_templete</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>express_templete</td>
<td>是</td>
<td>否</td>
<td>文件名</td>
<td>file</td>
<td>中通快递.xlsx</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">快递模板导出</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>模板导出</td>
<td>http</td>
<td>post</td>
<td>v3.0/api/export_express_templete</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>express_name</td>
<td>否</td>
<td>否</td>
<td>文件名</td>
<td>快递名称</td>
<td>中通快递（注：一定是系统已经录入的快递名称）</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>
</code></pre><h1 id="-">出入库记录删除(可批量删除)</h1>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>已撤销出入库记录删除/视频</td>
<td>http</td>
<td>post</td>
<td>storage_log_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>log_id</td>
<td>是</td>
<td>否</td>
<td>出入库记录主键id,以英文逗号进行拼接</td>
<td>string</td>
<td>1,2,3</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>操作日志类型;0:入库;1:出库;2:套餐出库;</td>
<td>integer</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &#39;&#39;
}
</code></pre>
          	</article>
        </div>
		</div>
  </body>
</html>
<script type="text/javascript" src="toc/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="toc/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="toc/js/ztree_toc.js"></script>
<script type="text/javascript" src="toc_conf.js"></script>

<SCRIPT type="text/javascript" >
<!--
$(document).ready(function(){
    var css_conf = eval(markdown_panel_style);
    $('#readme').css(css_conf)
    
    var conf = eval(jquery_ztree_toc_opts);
		$('#tree').ztree_toc(conf);
});
//-->
</SCRIPT>